fix clippy for when pprof is off

This commit is contained in:
Stephan Dilly 2020-07-04 16:54:30 +02:00
parent 8f1a1a008a
commit 715c1794d6

View file

@ -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))]