Skip to content

Commit

Permalink
revert to use iter
Browse files Browse the repository at this point in the history
  • Loading branch information
taegyunkim committed May 28, 2024
1 parent 4726844 commit 8c59767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profiling/src/internal/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ impl Profile {
//
// In this case, we use `sample_types` during upscaling of `samples`,
// so we must serialize `Sample` before `SampleType`.
for sample_type in self.sample_types.into_iter() {
for sample_type in self.sample_types.iter() {
let item: pprof::ValueType = sample_type.into();
encoder.encode(ProfileSampleTypesEntry::from(item))?;
}
Expand Down

0 comments on commit 8c59767

Please sign in to comment.