Skip to content

Commit d597de2

Browse files
committed
chore: fix clippy warnings
Fix warnings introduced by latest version of rust Signed-off-by: Flavio Castelli <fcastelli@suse.com>
1 parent e28c56b commit d597de2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/profiling.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl<I, T> Future for ProfileRunner<I, T> {
160160
pub(crate) async fn activate_memory_profiling() -> Result<(), ReportGenerationError> {
161161
let mut prof_ctl = jemalloc_pprof::PROF_CTL
162162
.as_ref()
163-
.ok_or_else(|| ReportGenerationError::CannotGetJemallocControlHandle)?
163+
.ok_or(ReportGenerationError::CannotGetJemallocControlHandle)?
164164
.lock()
165165
.await;
166166

0 commit comments

Comments
 (0)