diff --git a/integration-tests/call-runtime/lib.rs b/integration-tests/call-runtime/lib.rs index fd11591b7f7..b655f13adf4 100644 --- a/integration-tests/call-runtime/lib.rs +++ b/integration-tests/call-runtime/lib.rs @@ -46,10 +46,7 @@ mod runtime_call { RuntimeCall, }; - use ink::env::{ - Error as EnvError, - ReturnErrorCode, - }; + use ink::env::Error as EnvError; /// A trivial contract with a single message, that uses `call-runtime` API for /// performing native token transfer. @@ -66,9 +63,7 @@ mod runtime_call { impl From for RuntimeError { fn from(e: EnvError) -> Self { match e { - EnvError::CallRuntimeFailed => { - RuntimeError::CallRuntimeFailed - } + EnvError::CallRuntimeFailed => RuntimeError::CallRuntimeFailed, _ => panic!("Unexpected error from `pallet-contracts`."), } } diff --git a/integration-tests/erc1155/lib.rs b/integration-tests/erc1155/lib.rs index 0965e5dd911..27b9f2161eb 100644 --- a/integration-tests/erc1155/lib.rs +++ b/integration-tests/erc1155/lib.rs @@ -414,8 +414,8 @@ mod erc1155 { } Err(e) => { match e { - ink::env::Error::CodeNotFound | ink::env::Error::NotCallable, - ) => { + ink::env::Error::CodeNotFound + | ink::env::Error::NotCallable => { // Our recipient wasn't a smart contract, so there's // nothing more for // us to do diff --git a/integration-tests/sr25519-verification/lib.rs b/integration-tests/sr25519-verification/lib.rs index eed64a1d196..a8322b0149b 100644 --- a/integration-tests/sr25519-verification/lib.rs +++ b/integration-tests/sr25519-verification/lib.rs @@ -73,10 +73,7 @@ pub mod sr25519_verification { 143, ]; let result = ink::env::sr25519_verify(&signature, &message, &public_key); - assert_eq!( - result, - Err(ink::env::Error::Sr25519VerifyFailed) - ); + assert_eq!(result, Err(ink::env::Error::Sr25519VerifyFailed)); } #[ink::test] @@ -102,10 +99,7 @@ pub mod sr25519_verification { 143, ]; let result = ink::env::sr25519_verify(&signature, &message, &public_key); - assert_eq!( - result, - Err(ink::env::Error::Sr25519VerifyFailed) - ); + assert_eq!(result, Err(ink::env::Error::Sr25519VerifyFailed)); } #[ink::test] @@ -131,10 +125,7 @@ pub mod sr25519_verification { 143, ]; let result = ink::env::sr25519_verify(&signature, &message, &public_key); - assert_eq!( - result, - Err(ink::env::Error::Sr25519VerifyFailed) - ); + assert_eq!(result, Err(ink::env::Error::Sr25519VerifyFailed)); } } }