@@ -288,8 +288,7 @@ impl MemoryBlock {
288288 match hr {
289289 Err ( e) if e. code ( ) == E_OUTOFMEMORY => Err ( AllocationError :: OutOfMemory ) ,
290290 Err ( e) => Err ( AllocationError :: Internal ( format ! (
291- "ID3D12Device::CreateHeap failed: {}" ,
292- e
291+ "ID3D12Device::CreateHeap failed: {e}"
293292 ) ) ) ,
294293 Ok ( ( ) ) => heap. ok_or_else ( || {
295294 AllocationError :: Internal (
@@ -523,7 +522,7 @@ impl Allocator {
523522 )
524523 }
525524 . map_err ( |e| {
526- AllocationError :: Internal ( format ! ( "ID3D12Device::CheckFeatureSupport failed: {}" , e ) )
525+ AllocationError :: Internal ( format ! ( "ID3D12Device::CheckFeatureSupport failed: {e}" ) )
527526 } ) ?;
528527
529528 let is_heap_tier1 = options. ResourceHeapTier == D3D12_RESOURCE_HEAP_TIER_1 ;
@@ -629,7 +628,7 @@ impl Allocator {
629628 ) ;
630629 if self . debug_settings . log_stack_traces {
631630 let backtrace = Backtrace :: force_capture ( ) ;
632- debug ! ( "Allocation stack trace: {}" , backtrace ) ;
631+ debug ! ( "Allocation stack trace: {backtrace}" ) ;
633632 }
634633 }
635634
@@ -658,10 +657,10 @@ impl Allocator {
658657 pub fn free ( & mut self , allocation : Allocation ) -> Result < ( ) > {
659658 if self . debug_settings . log_frees {
660659 let name = allocation. name . as_deref ( ) . unwrap_or ( "<null>" ) ;
661- debug ! ( "Freeing `{}`." , name ) ;
660+ debug ! ( "Freeing `{name }`." ) ;
662661 if self . debug_settings . log_stack_traces {
663662 let backtrace = Backtrace :: force_capture ( ) ;
664- debug ! ( "Free stack trace: {}" , backtrace ) ;
663+ debug ! ( "Free stack trace: {backtrace}" ) ;
665664 }
666665 }
667666
@@ -845,8 +844,7 @@ impl Allocator {
845844 ) ) ) ;
846845 }
847846 return Err ( AllocationError :: Internal ( format ! (
848- "ID3D12Device::CreateCommittedResource failed: {}" ,
849- e
847+ "ID3D12Device::CreateCommittedResource failed: {e}"
850848 ) ) ) ;
851849 }
852850
@@ -961,8 +959,7 @@ impl Allocator {
961959 ) ) ) ;
962960 }
963961 return Err ( AllocationError :: Internal ( format ! (
964- "ID3D12Device::CreatePlacedResource failed: {}" ,
965- e
962+ "ID3D12Device::CreatePlacedResource failed: {e}"
966963 ) ) ) ;
967964 }
968965
0 commit comments