File tree Expand file tree Collapse file tree 5 files changed +8
-9
lines changed Expand file tree Collapse file tree 5 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -175,10 +175,9 @@ pub mod backend {
175175
176176 /// Get the currently installed default provider, panicking if none is installed.
177177 pub fn get_default_provider ( ) -> & ' static dyn CryptoProvider {
178- try_get_provider ( ) . map_or_else (
179- || panic ! ( "No crypto backend installed. Call install_default_provider() first." ) ,
180- |provider| provider,
181- )
178+ try_get_provider ( ) . unwrap_or_else ( || {
179+ panic ! ( "No crypto backend installed. Call install_default_provider() first." )
180+ } )
182181 }
183182
184183 /// Try to get the currently installed default provider, returning None if none is installed.
Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ pub struct SimBundleLogs {
283283 pub tx_logs : Option < Vec < Log > > ,
284284 /// Logs for bundles in bundle.
285285 #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
286- pub bundle_logs : Option < Vec < SimBundleLogs > > ,
286+ pub bundle_logs : Option < Vec < Self > > ,
287287}
288288
289289#[ cfg( test) ]
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ pub struct CallFrame {
3333 pub revert_reason : Option < String > ,
3434 /// Recorded child calls.
3535 #[ serde( default , skip_serializing_if = "Vec::is_empty" ) ]
36- pub calls : Vec < CallFrame > ,
36+ pub calls : Vec < Self > ,
3737 /// Logs emitted by this call.
3838 #[ serde( default , skip_serializing_if = "Vec::is_empty" ) ]
3939 pub logs : Vec < CallLogFrame > ,
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ pub struct Erc7562Frame {
5858 pub keccak : Vec < Bytes > ,
5959 /// The call frames.
6060 #[ serde( default , skip_serializing_if = "Vec::is_empty" ) ]
61- pub calls : Vec < Erc7562Frame > ,
61+ pub calls : Vec < Self > ,
6262}
6363
6464/// The accessed slots.
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ enum ArbitraryValue {
1818 Bool ( bool ) ,
1919 Number ( u64 ) ,
2020 String ( String ) ,
21- Array ( Vec < ArbitraryValue > ) ,
22- Object ( BTreeMap < String , ArbitraryValue > ) ,
21+ Array ( Vec < Self > ) ,
22+ Object ( BTreeMap < String , Self > ) ,
2323}
2424
2525impl ArbitraryValue {
You can’t perform that action at this time.
0 commit comments