Skip to content

Commit cd1549f

Browse files
Bump cargo_metadata to 0.11 (#4393)
* Bump cargo_metadata to 0.11 * cargo_metadata wants a Vec<String> now
1 parent 1eb8764 commit cd1549f

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

Diff for: Cargo.lock

+13-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ unicode-width = "0.1.5"
9090
# for more information.
9191
rustc-workspace-hack = "1.0.0"
9292

93-
cargo_metadata = { version = "0.9", optional = true }
93+
cargo_metadata = { version = "0.11", optional = true }
9494
diff = { version = "0.1", optional = true}
9595
dirs = { version = "2.0", optional = true }
9696
env_logger = { version = "0.7", optional = true }

Diff for: src/cargo-fmt/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -660,12 +660,12 @@ fn get_cargo_metadata(
660660
if let Some(manifest_path) = manifest_path {
661661
cmd.manifest_path(manifest_path);
662662
}
663-
cmd.other_options(&[String::from("--offline")]);
663+
cmd.other_options(vec![String::from("--offline")]);
664664

665665
match cmd.exec() {
666666
Ok(metadata) => Ok(metadata),
667667
Err(_) => {
668-
cmd.other_options(&[]);
668+
cmd.other_options(vec![]);
669669
match cmd.exec() {
670670
Ok(metadata) => Ok(metadata),
671671
Err(error) => Err(io::Error::new(io::ErrorKind::Other, error.to_string())),

0 commit comments

Comments
 (0)