@@ -349,7 +349,10 @@ impl ExecutingFrame<'_> {
349349 }
350350
351351 fn run ( & mut self , vm : & VirtualMachine ) -> PyResult < ExecutionResult > {
352- flame_guard ! ( format!( "Frame::run({})" , self . code. obj_name) ) ;
352+ flame_guard ! ( format!(
353+ "Frame::run({obj_name})" ,
354+ obj_name = self . code. obj_name
355+ ) ) ;
353356 // Execute until return or exception:
354357 let instructions = & self . code . instructions ;
355358 let mut arg_state = bytecode:: OpArgState :: default ( ) ;
@@ -941,7 +944,7 @@ impl ExecutingFrame<'_> {
941944 . get_attr ( identifier ! ( vm, __exit__) , vm)
942945 . map_err ( |_exc| {
943946 vm. new_type_error ( {
944- format ! ( "' {} (missed __exit__ method)" , error_string( ) )
947+ format ! ( "{} (missed __exit__ method)" , error_string( ) )
945948 } )
946949 } ) ?;
947950 self . push_value ( exit) ;
@@ -968,7 +971,7 @@ impl ExecutingFrame<'_> {
968971 . get_attr ( identifier ! ( vm, __aexit__) , vm)
969972 . map_err ( |_exc| {
970973 vm. new_type_error ( {
971- format ! ( "' {} (missed __aexit__ method)" , error_string( ) )
974+ format ! ( "{} (missed __aexit__ method)" , error_string( ) )
972975 } )
973976 } ) ?;
974977 self . push_value ( aexit) ;
@@ -1638,7 +1641,7 @@ impl ExecutingFrame<'_> {
16381641 F : FnMut ( PyObjectRef ) -> PyResult < ( ) > ,
16391642 {
16401643 let Some ( keys_method) = vm. get_method ( mapping. clone ( ) , vm. ctx . intern_str ( "keys" ) ) else {
1641- return Err ( vm. new_type_error ( format ! ( "{} must be a mapping" , error_prefix ) ) ) ;
1644+ return Err ( vm. new_type_error ( format ! ( "{error_prefix } must be a mapping" ) ) ) ;
16421645 } ;
16431646
16441647 let keys = keys_method?. call ( ( ) , vm) ?. get_iter ( vm) ?;
0 commit comments