File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -60,15 +60,8 @@ fn test_file() {
60
60
assert_eq ! ( s. elements. len( ) , 10 ) ;
61
61
assert_eq ! ( s. elements[ 3 ] , "4" . to_string( ) ) ;
62
62
assert_eq ! (
63
- s. place
64
- . creator
65
- . into_iter( )
66
- . collect:: <Vec <( String , config:: Value ) >>( ) ,
67
- vec![
68
- ( "name" . to_string( ) , "John Smith" . into( ) ) ,
69
- ( "username" . into( ) , "jsmith" . into( ) ) ,
70
- ( "email" . into( ) , "jsmith@localhost" . into( ) ) ,
71
- ]
63
+ s. place. creator[ "name" ] . clone( ) . into_string( ) . unwrap( ) ,
64
+ "John Smith" . to_string( )
72
65
) ;
73
66
}
74
67
Original file line number Diff line number Diff line change @@ -58,15 +58,8 @@ fn test_file() {
58
58
assert_eq ! ( s. elements. len( ) , 10 ) ;
59
59
assert_eq ! ( s. elements[ 3 ] , "4" . to_string( ) ) ;
60
60
assert_eq ! (
61
- s. place
62
- . creator
63
- . into_iter( )
64
- . collect:: <Vec <( String , config:: Value ) >>( ) ,
65
- vec![
66
- ( "name" . to_string( ) , "John Smith" . into( ) ) ,
67
- ( "username" . into( ) , "jsmith" . into( ) ) ,
68
- ( "email" . into( ) , "jsmith@localhost" . into( ) ) ,
69
- ]
61
+ s. place. creator[ "name" ] . clone( ) . into_string( ) . unwrap( ) ,
62
+ "John Smith" . to_string( )
70
63
) ;
71
64
}
72
65
You can’t perform that action at this time.
0 commit comments