Bump dep cargo_toml to v0.12.0 (#413)

* Bump dep cargo_toml to v0.12.0
* FIx compilation error
* Fix test parse-meta

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-09-24 11:18:47 +10:00 committed by GitHub
parent 34e493927f
commit cd3afdd9a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 11 deletions

View file

@ -13,7 +13,7 @@ license = "GPL-3.0"
async-trait = "0.1.57"
bytes = "1.2.1"
bzip2 = "0.4.3"
cargo_toml = "0.11.5"
cargo_toml = "0.12.0"
clap = { version = "3.2.22", features = ["derive"] }
compact_str = { version = "0.6.0", features = ["serde"] }
crates_io_api = { version = "0.8.1", default-features = false }

View file

@ -41,9 +41,3 @@ impl AbstractFilesystem for Vfs {
Ok(self.0.get(&*rel_path).map(Clone::clone).unwrap_or_default())
}
}
impl AbstractFilesystem for &Vfs {
fn file_names_in(&self, rel_path: &str) -> io::Result<HashSet<Box<str>>> {
(*self).file_names_in(rel_path)
}
}

View file

@ -24,7 +24,7 @@ fn parse_meta() {
&[Product {
name: Some("cargo-binstall".to_string()),
path: Some("src/main.rs".to_string()),
edition: Some(cargo_toml::Edition::E2021),
edition: cargo_toml::Edition::E2021,
..Default::default()
},],
);