mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
fix clippy for when pprof is off
This commit is contained in:
parent
8f1a1a008a
commit
715c1794d6
1 changed files with 2 additions and 0 deletions
|
|
@ -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))]
|
||||
|
|
|
|||
Loading…
Reference in a new issue