We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a7ee04 commit 61c7305Copy full SHA for 61c7305
perf-event/src/sampler.rs
@@ -624,7 +624,7 @@ impl<'s> Record<'s> {
624
// All other records either already parsed the sample id or don't have it.
625
// With SAMPLE records, we can construct the sample id struct directly.
626
if self.ty() != bindings::PERF_RECORD_SAMPLE {
627
- return Ok(metadata.sample_id().clone());
+ return Ok(*metadata.sample_id());
628
}
629
630
let record = parser.parse::<data::Sample>()?;
0 commit comments