Skip to content

Commit f4d41bc

Browse files
committed
fix(recording): remove needless return in memory profiling leak check
Made-with: Cursor
1 parent 8ef3ebd commit f4d41bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/recording/src/memory_profiling.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ impl MemoryProfiler {
5858
#[cfg(feature = "memory-profiling")]
5959
{
6060
let stats = dhat::HeapStats::get();
61-
return LeakCheckResult {
61+
LeakCheckResult {
6262
growth_rate_mb_per_sec: growth.rate_mb_per_sec,
6363
total_growth_mb: growth.total_mb,
6464
peak_mb: growth.peak_mb,
6565
dhat_current_blocks: Some(stats.curr_blocks as u64),
6666
dhat_current_bytes: Some(stats.curr_bytes as u64),
6767
dhat_peak_bytes: Some(stats.max_bytes as u64),
6868
verdict: classify_leak(growth.rate_mb_per_sec),
69-
};
69+
}
7070
}
7171

7272
#[cfg(not(feature = "memory-profiling"))]

0 commit comments

Comments
 (0)