Skip to content

Commit

Permalink
Bump dep cargo_toml to v0.12.0 (rust-lang#413)
Browse files Browse the repository at this point in the history
* Bump dep cargo_toml to v0.12.0
* FIx compilation error
* Fix test parse-meta

Signed-off-by: Jiahao XU <[email protected]>
  • Loading branch information
NobodyXu authored Sep 24, 2022
1 parent 34e4939 commit cd3afdd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
5 changes: 2 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/binstalk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
6 changes: 0 additions & 6 deletions crates/binstalk/src/drivers/crates_io/vfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
2 changes: 1 addition & 1 deletion crates/binstalk/tests/parse-meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
},],
);
Expand Down

0 comments on commit cd3afdd

Please sign in to comment.