From 715c1794d62c23df64c5c79fef37f1be36d5efaa Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Sat, 4 Jul 2020 16:54:30 +0200 Subject: [PATCH] fix clippy for when pprof is off --- src/profiler.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/profiler.rs b/src/profiler.rs index cca59010..7527839a 100644 --- a/src/profiler.rs +++ b/src/profiler.rs @@ -7,6 +7,7 @@ pub struct Profiler { } impl Profiler { + #[allow(clippy::missing_const_for_fn)] pub fn new() -> Self { Self { #[cfg(feature = "pprof")] @@ -16,6 +17,7 @@ impl Profiler { } } + #[allow(clippy::unused_self)] fn report(&mut self) { #[cfg(feature = "pprof")] #[cfg(not(windows))]