File tree Expand file tree Collapse file tree 2 files changed +16
-21
lines changed
interpreter/src/instructions Expand file tree Collapse file tree 2 files changed +16
-21
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ pub(super) fn i256_cmp(first: &U256, second: &U256) -> Ordering {
8181 match first_sign. cmp ( & second_sign) {
8282 // note: adding `if first_sign != Sign::Zero` to short circuit zero comparisons performs
8383 // slower on average, as of #582
84- Ordering :: Equal => first. cmp ( & second) ,
84+ Ordering :: Equal => first. cmp ( second) ,
8585 o => o,
8686 }
8787}
Original file line number Diff line number Diff line change @@ -397,8 +397,7 @@ mod tests {
397397 /// Test bundle one
398398 fn test_bundle1 ( ) -> BundleState {
399399 // block changes
400-
401- let bundle = BundleState :: new (
400+ BundleState :: new (
402401 vec ! [
403402 (
404403 account1( ) ,
@@ -428,27 +427,24 @@ mod tests {
428427 ( account2( ) , Some ( None ) , vec![ ] ) ,
429428 ] ] ,
430429 vec ! [ ] ,
431- ) ;
432- bundle
430+ )
433431 }
434432
435433 /// Test bundle two
436434 fn test_bundle2 ( ) -> BundleState {
437435 // block changes
438- let bundle = BundleState :: new (
439- vec ! [
440- ( (
441- account1( ) ,
442- None ,
443- Some ( AccountInfo {
444- nonce: 3 ,
445- balance: U256 :: from( 20 ) ,
446- code_hash: KECCAK_EMPTY ,
447- code: None ,
448- } ) ,
449- HashMap :: from( [ ( slot( ) , ( U256 :: from( 0 ) , U256 :: from( 15 ) ) ) ] ) ,
450- ) ) ,
451- ] ,
436+ BundleState :: new (
437+ vec ! [ (
438+ account1( ) ,
439+ None ,
440+ Some ( AccountInfo {
441+ nonce: 3 ,
442+ balance: U256 :: from( 20 ) ,
443+ code_hash: KECCAK_EMPTY ,
444+ code: None ,
445+ } ) ,
446+ HashMap :: from( [ ( slot( ) , ( U256 :: from( 0 ) , U256 :: from( 15 ) ) ) ] ) ,
447+ ) ] ,
452448 vec ! [ vec![ (
453449 account1( ) ,
454450 Some ( Some ( AccountInfo {
@@ -460,8 +456,7 @@ mod tests {
460456 vec![ ( slot( ) , U256 :: from( 10 ) ) ] ,
461457 ) ] ] ,
462458 vec ! [ ] ,
463- ) ;
464- bundle
459+ )
465460 }
466461
467462 #[ test]
You can’t perform that action at this time.
0 commit comments