File tree Expand file tree Collapse file tree
src/constants/return_code
tests/integration_tests/error_tests/return_code_tests/tpm_tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ impl TryFrom<u8> for ReturnCodeLayer {
3333
3434 fn try_from ( value : u8 ) -> Result < Self > {
3535 ReturnCodeLayer :: from_u8 ( value) . ok_or_else ( || {
36- error ! ( "{:#02X } is not valid ReturnCodeLayer" , value) ;
36+ error ! ( "{:#X } is not valid ReturnCodeLayer" , value) ;
3737 Error :: local_error ( WrapperErrorKind :: InvalidParam )
3838 } )
3939 }
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ fn test_valid_parameter_conversions() {
5252 assert_eq ! (
5353 expected,
5454 actual,
55- "Performing `from` conversion return code {return_code_argument_info:#02X } did not produce the expected {} with value {val}" ,
55+ "Performing `from` conversion return code {return_code_argument_info:#X } did not produce the expected {} with value {val}" ,
5656 std:: stringify!( ArgumentNumber :: Parameter ) ,
5757 ) ;
5858 } )
@@ -85,7 +85,7 @@ fn test_valid_session_conversions() {
8585 assert_eq ! (
8686 expected,
8787 actual,
88- "Performing `from` conversion return code {return_code_argument_info:#02X } did not produce the expected {} with value {val}" ,
88+ "Performing `from` conversion return code {return_code_argument_info:#X } did not produce the expected {} with value {val}" ,
8989 std:: stringify!( ArgumentNumber :: Session ) ,
9090 ) ;
9191 } )
@@ -118,7 +118,7 @@ fn test_valid_handle_conversions() {
118118 assert_eq ! (
119119 expected,
120120 actual,
121- "Performing `from` conversion return code {return_code_argument_info:#02X } did not produce the expected {} with value {val}" ,
121+ "Performing `from` conversion return code {return_code_argument_info:#X } did not produce the expected {} with value {val}" ,
122122 std:: stringify!( ArgumentNumber :: Handle )
123123 ) ;
124124 } )
You can’t perform that action at this time.
0 commit comments