diff options
Diffstat (limited to 'crates/ra_prof')
-rw-r--r-- | crates/ra_prof/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_prof/src/lib.rs b/crates/ra_prof/src/lib.rs index 121a62813..c7c21b6d2 100644 --- a/crates/ra_prof/src/lib.rs +++ b/crates/ra_prof/src/lib.rs | |||
@@ -104,6 +104,10 @@ pub struct Filter { | |||
104 | } | 104 | } |
105 | 105 | ||
106 | impl Filter { | 106 | impl Filter { |
107 | pub fn disabled() -> Filter { | ||
108 | Filter::new(0, Vec::new()) | ||
109 | } | ||
110 | |||
107 | pub fn new(depth: usize, allowed: Vec<String>) -> Filter { | 111 | pub fn new(depth: usize, allowed: Vec<String>) -> Filter { |
108 | Filter { depth, allowed } | 112 | Filter { depth, allowed } |
109 | } | 113 | } |