File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,10 @@ pub fn read_manifest(
69
69
let is_embedded = is_embedded ( path) ;
70
70
let contents = read_toml_string ( path, is_embedded, gctx)
71
71
. map_err ( |err| ManifestError :: new ( err, path. into ( ) ) ) ?;
72
- let document =
73
- parse_document ( & contents ) . map_err ( |e| emit_diagnostic ( e. into ( ) , & contents, path, gctx) ) ?;
72
+ let document = parse_document ( & contents )
73
+ . map_err ( |e| emit_toml_diagnostic ( e. into ( ) , & contents, path, gctx) ) ?;
74
74
let original_toml = deserialize_toml ( & document)
75
- . map_err ( |e| emit_diagnostic ( e. into ( ) , & contents, path, gctx) ) ?;
75
+ . map_err ( |e| emit_toml_diagnostic ( e. into ( ) , & contents, path, gctx) ) ?;
76
76
77
77
let mut manifest = ( || {
78
78
let empty = Vec :: new ( ) ;
@@ -2777,7 +2777,7 @@ fn lints_to_rustflags(lints: &manifest::TomlLints) -> CargoResult<Vec<String>> {
2777
2777
Ok ( rustflags)
2778
2778
}
2779
2779
2780
- fn emit_diagnostic (
2780
+ fn emit_toml_diagnostic (
2781
2781
e : toml:: de:: Error ,
2782
2782
contents : & str ,
2783
2783
manifest_file : & Path ,
You can’t perform that action at this time.
0 commit comments