@@ -288,8 +288,7 @@ impl MemoryBlock {
288
288
match hr {
289
289
Err ( e) if e. code ( ) == E_OUTOFMEMORY => Err ( AllocationError :: OutOfMemory ) ,
290
290
Err ( e) => Err ( AllocationError :: Internal ( format ! (
291
- "ID3D12Device::CreateHeap failed: {}" ,
292
- e
291
+ "ID3D12Device::CreateHeap failed: {e}"
293
292
) ) ) ,
294
293
Ok ( ( ) ) => heap. ok_or_else ( || {
295
294
AllocationError :: Internal (
@@ -523,7 +522,7 @@ impl Allocator {
523
522
)
524
523
}
525
524
. map_err ( |e| {
526
- AllocationError :: Internal ( format ! ( "ID3D12Device::CheckFeatureSupport failed: {}" , e ) )
525
+ AllocationError :: Internal ( format ! ( "ID3D12Device::CheckFeatureSupport failed: {e}" ) )
527
526
} ) ?;
528
527
529
528
let is_heap_tier1 = options. ResourceHeapTier == D3D12_RESOURCE_HEAP_TIER_1 ;
@@ -629,7 +628,7 @@ impl Allocator {
629
628
) ;
630
629
if self . debug_settings . log_stack_traces {
631
630
let backtrace = Backtrace :: force_capture ( ) ;
632
- debug ! ( "Allocation stack trace: {}" , backtrace ) ;
631
+ debug ! ( "Allocation stack trace: {backtrace}" ) ;
633
632
}
634
633
}
635
634
@@ -658,10 +657,10 @@ impl Allocator {
658
657
pub fn free ( & mut self , allocation : Allocation ) -> Result < ( ) > {
659
658
if self . debug_settings . log_frees {
660
659
let name = allocation. name . as_deref ( ) . unwrap_or ( "<null>" ) ;
661
- debug ! ( "Freeing `{}`." , name ) ;
660
+ debug ! ( "Freeing `{name }`." ) ;
662
661
if self . debug_settings . log_stack_traces {
663
662
let backtrace = Backtrace :: force_capture ( ) ;
664
- debug ! ( "Free stack trace: {}" , backtrace ) ;
663
+ debug ! ( "Free stack trace: {backtrace}" ) ;
665
664
}
666
665
}
667
666
@@ -845,8 +844,7 @@ impl Allocator {
845
844
) ) ) ;
846
845
}
847
846
return Err ( AllocationError :: Internal ( format ! (
848
- "ID3D12Device::CreateCommittedResource failed: {}" ,
849
- e
847
+ "ID3D12Device::CreateCommittedResource failed: {e}"
850
848
) ) ) ;
851
849
}
852
850
@@ -961,8 +959,7 @@ impl Allocator {
961
959
) ) ) ;
962
960
}
963
961
return Err ( AllocationError :: Internal ( format ! (
964
- "ID3D12Device::CreatePlacedResource failed: {}" ,
965
- e
962
+ "ID3D12Device::CreatePlacedResource failed: {e}"
966
963
) ) ) ;
967
964
}
968
965
0 commit comments