Skip to content

Commit 61c7305

Browse files
committed
Address clippy warning
1 parent 5a7ee04 commit 61c7305

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perf-event/src/sampler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ impl<'s> Record<'s> {
624624
// All other records either already parsed the sample id or don't have it.
625625
// With SAMPLE records, we can construct the sample id struct directly.
626626
if self.ty() != bindings::PERF_RECORD_SAMPLE {
627-
return Ok(metadata.sample_id().clone());
627+
return Ok(*metadata.sample_id());
628628
}
629629

630630
let record = parser.parse::<data::Sample>()?;

0 commit comments

Comments
 (0)