Skip to content

Commit 715c179

Browse files
author
Stephan Dilly
committed
fix clippy for when pprof is off
1 parent 8f1a1a0 commit 715c179

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/profiler.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pub struct Profiler {
77
}
88

99
impl Profiler {
10+
#[allow(clippy::missing_const_for_fn)]
1011
pub fn new() -> Self {
1112
Self {
1213
#[cfg(feature = "pprof")]
@@ -16,6 +17,7 @@ impl Profiler {
1617
}
1718
}
1819

20+
#[allow(clippy::unused_self)]
1921
fn report(&mut self) {
2022
#[cfg(feature = "pprof")]
2123
#[cfg(not(windows))]

0 commit comments

Comments
 (0)