@@ -247,7 +247,7 @@ impl<'config> StackSubstateMetadata<'config> {
247247 & self . gasometer
248248 }
249249
250- pub fn gasometer_mut ( & mut self ) -> & mut Gasometer < ' config > {
250+ pub const fn gasometer_mut ( & mut self ) -> & mut Gasometer < ' config > {
251251 & mut self . gasometer
252252 }
253253
@@ -445,7 +445,7 @@ impl<'config, 'precompiles, S: StackState<'config>, P: PrecompileSet>
445445 & self . state
446446 }
447447
448- pub fn state_mut ( & mut self ) -> & mut S {
448+ pub const fn state_mut ( & mut self ) -> & mut S {
449449 & mut self . state
450450 }
451451
@@ -942,7 +942,7 @@ impl<'config, 'precompiles, S: StackState<'config>, P: PrecompileSet>
942942 self . state
943943 . metadata_mut ( )
944944 . access_addresses ( [ caller, address] . iter ( ) . copied ( ) ) ;
945- } ;
945+ }
946946
947947 self . warm_access_list ( access_list) ;
948948 }
@@ -1287,7 +1287,7 @@ impl<'config, 'precompiles, S: StackState<'config>, P: PrecompileSet>
12871287 Ok ( ( ) )
12881288 }
12891289
1290- log:: debug!( target: "evm" , "Create execution using address {}: {:?}" , created_address , reason ) ;
1290+ log:: debug!( target: "evm" , "Create execution using address {created_address }: {reason :?}" ) ;
12911291
12921292 match reason {
12931293 ExitReason :: Succeed ( s) => {
@@ -1355,7 +1355,7 @@ impl<'config, 'precompiles, S: StackState<'config>, P: PrecompileSet>
13551355 reason : & ExitReason ,
13561356 return_data : Vec < u8 > ,
13571357 ) -> Vec < u8 > {
1358- log:: debug!( target: "evm" , "Call execution using address {}: {:?}" , code_address , reason ) ;
1358+ log:: debug!( target: "evm" , "Call execution using address {code_address }: {reason :?}" ) ;
13591359 match reason {
13601360 ExitReason :: Succeed ( _) => {
13611361 let _ = self . exit_substate ( & StackExitKind :: Succeeded ) ;
0 commit comments