@@ -158,7 +158,7 @@ fn test_get_missing_field() {
158158 let res = c. get :: < InnerSettings > ( "inner" ) ;
159159 assert_data_eq ! (
160160 res. unwrap_err( ) . to_string( ) ,
161- str ![ "missing field ` value2` for key `inner`" ]
161+ str ![ [ r# "missing configuration field " value2" for key `inner`"# ] ]
162162 ) ;
163163}
164164
@@ -184,7 +184,7 @@ fn test_get_missing_field_file() {
184184 let res = c. get :: < InnerSettings > ( "inner" ) ;
185185 assert_data_eq ! (
186186 res. unwrap_err( ) . to_string( ) ,
187- str ![ "missing field ` value2` for key `inner`" ]
187+ str ![ [ r# "missing configuration field " value2" for key `inner`"# ] ]
188188 ) ;
189189}
190190
@@ -436,7 +436,7 @@ fn test_deserialize_missing_field() {
436436 let res = c. try_deserialize :: < Settings > ( ) ;
437437 assert_data_eq ! (
438438 res. unwrap_err( ) . to_string( ) ,
439- str ![ "missing field `value2` for key ` inner`" ]
439+ str ![ [ r# "missing configuration field " inner.value2""# ] ]
440440 ) ;
441441}
442442
@@ -468,6 +468,6 @@ fn test_deserialize_missing_field_file() {
468468 let res = c. try_deserialize :: < Settings > ( ) ;
469469 assert_data_eq ! (
470470 res. unwrap_err( ) . to_string( ) ,
471- str ![ "missing field `value2` for key ` inner`" ]
471+ str ![ [ r# "missing configuration field " inner.value2""# ] ]
472472 ) ;
473473}
0 commit comments