From b228947b6863f5864b48bb3a7f3dcca921f58d0b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 14 Apr 2019 23:04:08 +0300 Subject: cleanup syntax --- crates/ra_prof/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/ra_prof') 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 { } impl Filter { + pub fn disabled() -> Filter { + Filter::new(0, Vec::new()) + } + pub fn new(depth: usize, allowed: Vec) -> Filter { Filter { depth, allowed } } -- cgit v1.2.3