From 9b73f809596e955216dde24fcf921d6985a1a767 Mon Sep 17 00:00:00 2001 From: Sergey Parilin Date: Tue, 2 Apr 2019 17:52:04 +0300 Subject: PR issuse resolved --- crates/ra_prof/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crates/ra_prof') diff --git a/crates/ra_prof/src/lib.rs b/crates/ra_prof/src/lib.rs index 0107f7de9..abddff960 100644 --- a/crates/ra_prof/src/lib.rs +++ b/crates/ra_prof/src/lib.rs @@ -52,6 +52,12 @@ pub struct Filter { allowed: Vec, } +impl Filter { + pub fn new(depth: usize, allowed: Vec) -> Filter { + Filter { depth, allowed } + } +} + struct ProfileStack { starts: Vec, messages: Vec, -- cgit v1.2.3