@@ -2900,50 +2900,55 @@ mod tests {
2900
2900
let mut v3 = Options :: default ( ) ;
2901
2901
let mut v4 = Options :: default ( ) ;
2902
2902
2903
+ const JSON : super :: ErrorOutputType = super :: ErrorOutputType :: Json {
2904
+ pretty : false ,
2905
+ colorful_rendered : false ,
2906
+ } ;
2907
+
2903
2908
// Reference
2904
2909
v1. search_paths
2905
- . push ( SearchPath :: from_cli_opt ( "native=abc" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2910
+ . push ( SearchPath :: from_cli_opt ( "native=abc" , JSON ) ) ;
2906
2911
v1. search_paths
2907
- . push ( SearchPath :: from_cli_opt ( "crate=def" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2912
+ . push ( SearchPath :: from_cli_opt ( "crate=def" , JSON ) ) ;
2908
2913
v1. search_paths
2909
- . push ( SearchPath :: from_cli_opt ( "dependency=ghi" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2914
+ . push ( SearchPath :: from_cli_opt ( "dependency=ghi" , JSON ) ) ;
2910
2915
v1. search_paths
2911
- . push ( SearchPath :: from_cli_opt ( "framework=jkl" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2916
+ . push ( SearchPath :: from_cli_opt ( "framework=jkl" , JSON ) ) ;
2912
2917
v1. search_paths
2913
- . push ( SearchPath :: from_cli_opt ( "all=mno" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2918
+ . push ( SearchPath :: from_cli_opt ( "all=mno" , JSON ) ) ;
2914
2919
2915
2920
v2. search_paths
2916
- . push ( SearchPath :: from_cli_opt ( "native=abc" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2921
+ . push ( SearchPath :: from_cli_opt ( "native=abc" , JSON ) ) ;
2917
2922
v2. search_paths
2918
- . push ( SearchPath :: from_cli_opt ( "dependency=ghi" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2923
+ . push ( SearchPath :: from_cli_opt ( "dependency=ghi" , JSON ) ) ;
2919
2924
v2. search_paths
2920
- . push ( SearchPath :: from_cli_opt ( "crate=def" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2925
+ . push ( SearchPath :: from_cli_opt ( "crate=def" , JSON ) ) ;
2921
2926
v2. search_paths
2922
- . push ( SearchPath :: from_cli_opt ( "framework=jkl" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2927
+ . push ( SearchPath :: from_cli_opt ( "framework=jkl" , JSON ) ) ;
2923
2928
v2. search_paths
2924
- . push ( SearchPath :: from_cli_opt ( "all=mno" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2929
+ . push ( SearchPath :: from_cli_opt ( "all=mno" , JSON ) ) ;
2925
2930
2926
2931
v3. search_paths
2927
- . push ( SearchPath :: from_cli_opt ( "crate=def" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2932
+ . push ( SearchPath :: from_cli_opt ( "crate=def" , JSON ) ) ;
2928
2933
v3. search_paths
2929
- . push ( SearchPath :: from_cli_opt ( "framework=jkl" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2934
+ . push ( SearchPath :: from_cli_opt ( "framework=jkl" , JSON ) ) ;
2930
2935
v3. search_paths
2931
- . push ( SearchPath :: from_cli_opt ( "native=abc" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2936
+ . push ( SearchPath :: from_cli_opt ( "native=abc" , JSON ) ) ;
2932
2937
v3. search_paths
2933
- . push ( SearchPath :: from_cli_opt ( "dependency=ghi" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2938
+ . push ( SearchPath :: from_cli_opt ( "dependency=ghi" , JSON ) ) ;
2934
2939
v3. search_paths
2935
- . push ( SearchPath :: from_cli_opt ( "all=mno" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2940
+ . push ( SearchPath :: from_cli_opt ( "all=mno" , JSON ) ) ;
2936
2941
2937
2942
v4. search_paths
2938
- . push ( SearchPath :: from_cli_opt ( "all=mno" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2943
+ . push ( SearchPath :: from_cli_opt ( "all=mno" , json ) ) ;
2939
2944
v4. search_paths
2940
- . push ( SearchPath :: from_cli_opt ( "native=abc" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2945
+ . push ( SearchPath :: from_cli_opt ( "native=abc" , json ) ) ;
2941
2946
v4. search_paths
2942
- . push ( SearchPath :: from_cli_opt ( "crate=def" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2947
+ . push ( SearchPath :: from_cli_opt ( "crate=def" , json ) ) ;
2943
2948
v4. search_paths
2944
- . push ( SearchPath :: from_cli_opt ( "dependency=ghi" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2949
+ . push ( SearchPath :: from_cli_opt ( "dependency=ghi" , json ) ) ;
2945
2950
v4. search_paths
2946
- . push ( SearchPath :: from_cli_opt ( "framework=jkl" , super :: ErrorOutputType :: Json ( false ) ) ) ;
2951
+ . push ( SearchPath :: from_cli_opt ( "framework=jkl" , json ) ) ;
2947
2952
2948
2953
assert ! ( v1. dep_tracking_hash( ) == v2. dep_tracking_hash( ) ) ;
2949
2954
assert ! ( v1. dep_tracking_hash( ) == v3. dep_tracking_hash( ) ) ;
0 commit comments