Skip to content

Commit f852585

Browse files
committed
lint: fix unused mut
1 parent c93be3f commit f852585

File tree

1 file changed

+2
-2
lines changed
  • datadog-profiling/src/internal/profile

1 file changed

+2
-2
lines changed

datadog-profiling/src/internal/profile/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ impl Profile {
321321
/// may fail as system clocks can be adjusted. The programmer may also accidentally pass an
322322
/// earlier time. The duration will be set to zero these cases.
323323
pub fn serialize_into_compressed_pprof(
324-
mut self,
324+
self,
325325
end_time: Option<SystemTime>,
326326
duration: Option<Duration>,
327327
) -> anyhow::Result<EncodedProfile> {
@@ -350,7 +350,7 @@ impl Profile {
350350
writer: &mut W,
351351
end_time: Option<SystemTime>,
352352
duration: Option<Duration>,
353-
) -> io::Result<EncodedProfile> {
353+
) -> anyhow::Result<EncodedProfile> {
354354
let end = end_time.unwrap_or_else(SystemTime::now);
355355
let start = self.start_time;
356356
let endpoints_stats = std::mem::take(&mut self.endpoints.stats);

0 commit comments

Comments
 (0)