Skip to content

Commit a0fa1d3

Browse files
committedOct 30, 2024
fmt and fix clippy
1 parent a57eb0d commit a0fa1d3

File tree

2 files changed

+5
-2
lines changed
  • src/allocator

2 files changed

+5
-2
lines changed
 

‎src/allocator/dedicated_block_allocator/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl SubAllocator for DedicatedBlockAllocator {
108108
name,
109109
self.backtrace
110110
.as_ref()
111-
.map_or(&Backtrace::disabled(), |b| &b)
111+
.map_or(&Backtrace::disabled(), |b| b)
112112
)
113113
}
114114

‎src/allocator/free_list_allocator/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,10 @@ impl SubAllocator for FreeListAllocator {
384384
chunk.offset,
385385
chunk.allocation_type,
386386
name,
387-
chunk.backtrace.as_ref().map_or(&Backtrace::disabled(), |b| &b)
387+
chunk
388+
.backtrace
389+
.as_ref()
390+
.map_or(&Backtrace::disabled(), |b| b)
388391
);
389392
}
390393
}

0 commit comments

Comments
 (0)
Failed to load comments.