From 0394c5144a6cf237ec53cbd694afa29d838519d5 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Thu, 17 Apr 2025 11:48:20 +0200 Subject: Fix warnings and general cleanup --- perf-event/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perf-event/src/lib.rs') diff --git a/perf-event/src/lib.rs b/perf-event/src/lib.rs index e09de18..babab41 100644 --- a/perf-event/src/lib.rs +++ b/perf-event/src/lib.rs @@ -429,7 +429,7 @@ pub struct CountAndTime { pub time_running: u64, } -impl<'a> EventPid<'a> { +impl EventPid<'_> { // Return the `pid` arg and the `flags` bits representing `self`. fn as_args(&self) -> (pid_t, u32) { match self { @@ -1037,7 +1037,7 @@ impl std::ops::Index<&Counter> for Counts { impl std::fmt::Debug for Counts { fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result { - fmt.debug_map().entries(self.into_iter()).finish() + fmt.debug_map().entries(self).finish() } } -- cgit v1.3.1