@@ -21,7 +21,7 @@ fn test_initialize_token_parameters_decode_failiure() {
2121 assert_matches ! (
2222 res,
2323 Err ( InitError :: DeserializationFailure ( ref e) )
24- if e. to_string ( ) == "IO error: failed to fill whole buffer"
24+ if e == "IO error: failed to fill whole buffer"
2525 ) ;
2626}
2727
@@ -47,7 +47,7 @@ fn test_initialize_token_parameters_missing() {
4747 let res = token_module:: initialize_token ( & mut host, encoded_parameters) ;
4848 assert_matches ! ( res,
4949 Err ( InitError :: DeserializationFailure ( e) )
50- if e. to_string ( ) == "Token name is missing"
50+ if e == "Token name is missing"
5151 ) ;
5252}
5353
@@ -77,7 +77,7 @@ fn test_initiailize_token_additional_parameter() {
7777 assert_matches ! (
7878 res,
7979 Err ( InitError :: DeserializationFailure ( e) )
80- if e. to_string ( ) == "Unknown additional parameters: _param1"
80+ if e == "Unknown additional parameters: _param1"
8181 ) ;
8282}
8383
@@ -211,7 +211,7 @@ fn test_initiailize_token_excessive_mint_decimals() {
211211 assert_matches ! (
212212 res,
213213 Err ( InitError :: InvalidMintAmount ( e) )
214- if e. to_string ( ) == "Token amount decimals mismatch: expected 2, found 6"
214+ if e == "Token amount decimals mismatch: expected 2, found 6"
215215 ) ;
216216}
217217
@@ -241,6 +241,6 @@ fn test_initiailize_token_insufficient_mint_decimals() {
241241 assert_matches ! (
242242 res,
243243 Err ( InitError :: InvalidMintAmount ( e) )
244- if e. to_string ( ) == "Token amount decimals mismatch: expected 6, found 2"
244+ if e == "Token amount decimals mismatch: expected 6, found 2"
245245 ) ;
246246}
0 commit comments