@@ -19,7 +19,7 @@ use cargo_util_schemas::manifest::{RustVersion, StringOrBool};
1919use itertools:: Itertools ;
2020use lazycell:: LazyCell ;
2121use pathdiff:: diff_paths;
22- use toml_edit:: ImDocument ;
22+ use toml_edit:: Document ;
2323use url:: Url ;
2424
2525use crate :: core:: compiler:: { CompileKind , CompileTarget } ;
@@ -166,13 +166,13 @@ fn read_toml_string(path: &Path, is_embedded: bool, gctx: &GlobalContext) -> Car
166166}
167167
168168#[ tracing:: instrument( skip_all) ]
169- fn parse_document ( contents : & str ) -> Result < toml_edit:: ImDocument < String > , toml_edit:: de:: Error > {
170- toml_edit:: ImDocument :: parse ( contents. to_owned ( ) ) . map_err ( Into :: into)
169+ fn parse_document ( contents : & str ) -> Result < toml_edit:: Document < String > , toml_edit:: de:: Error > {
170+ toml_edit:: Document :: parse ( contents. to_owned ( ) ) . map_err ( Into :: into)
171171}
172172
173173#[ tracing:: instrument( skip_all) ]
174174fn deserialize_toml (
175- document : & toml_edit:: ImDocument < String > ,
175+ document : & toml_edit:: Document < String > ,
176176) -> Result < manifest:: TomlManifest , toml_edit:: de:: Error > {
177177 let mut unused = BTreeSet :: new ( ) ;
178178 let deserializer = toml_edit:: de:: Deserializer :: from ( document. clone ( ) ) ;
@@ -1256,7 +1256,7 @@ fn deprecated_ws_default_features(
12561256#[ tracing:: instrument( skip_all) ]
12571257pub fn to_real_manifest (
12581258 contents : String ,
1259- document : toml_edit:: ImDocument < String > ,
1259+ document : toml_edit:: Document < String > ,
12601260 original_toml : manifest:: TomlManifest ,
12611261 normalized_toml : manifest:: TomlManifest ,
12621262 features : Features ,
@@ -1843,7 +1843,7 @@ pub fn to_real_manifest(
18431843fn missing_dep_diagnostic (
18441844 missing_dep : & MissingDependencyError ,
18451845 orig_toml : & TomlManifest ,
1846- document : & ImDocument < String > ,
1846+ document : & Document < String > ,
18471847 contents : & str ,
18481848 manifest_file : & Path ,
18491849 gctx : & GlobalContext ,
@@ -1921,7 +1921,7 @@ fn missing_dep_diagnostic(
19211921
19221922fn to_virtual_manifest (
19231923 contents : String ,
1924- document : toml_edit:: ImDocument < String > ,
1924+ document : toml_edit:: Document < String > ,
19251925 original_toml : manifest:: TomlManifest ,
19261926 normalized_toml : manifest:: TomlManifest ,
19271927 features : Features ,
0 commit comments