We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a57eb0d commit a0fa1d3Copy full SHA for a0fa1d3
src/allocator/dedicated_block_allocator/mod.rs
@@ -108,7 +108,7 @@ impl SubAllocator for DedicatedBlockAllocator {
108
name,
109
self.backtrace
110
.as_ref()
111
- .map_or(&Backtrace::disabled(), |b| &b)
+ .map_or(&Backtrace::disabled(), |b| b)
112
)
113
}
114
src/allocator/free_list_allocator/mod.rs
@@ -384,7 +384,10 @@ impl SubAllocator for FreeListAllocator {
384
chunk.offset,
385
chunk.allocation_type,
386
387
- chunk.backtrace.as_ref().map_or(&Backtrace::disabled(), |b| &b)
+ chunk
388
+ .backtrace
389
+ .as_ref()
390
391
);
392
393
0 commit comments