Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 4e7eda4

Browse files
authored
Merge pull request rust-lang#3297 from matthiaskrgr/deps
update dependencies
2 parents d2e91b5 + d44ee75 commit 4e7eda4

File tree

3 files changed

+29
-24
lines changed

3 files changed

+29
-24
lines changed

Cargo.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ generic-simd = ["bytecount/generic-simd"]
3434

3535
[dependencies]
3636
atty = "0.2"
37-
itertools = "0.7"
37+
itertools = "0.8"
3838
toml = "0.4"
3939
serde = "1.0"
4040
serde_derive = "1.0"
@@ -44,15 +44,15 @@ regex = "1.0"
4444
term = "0.5"
4545
diff = "0.1"
4646
log = "0.4"
47-
env_logger = "0.5"
47+
env_logger = "0.6"
4848
getopts = "0.2"
4949
derive-new = "0.5"
50-
cargo_metadata = "0.6"
50+
cargo_metadata = "0.7"
5151
rustc-ap-rustc_target = "306.0.0"
5252
rustc-ap-syntax = "306.0.0"
5353
rustc-ap-syntax_pos = "306.0.0"
54-
failure = "0.1.1"
55-
bytecount = "0.4"
54+
failure = "0.1.3"
55+
bytecount = "0.5"
5656
unicode-width = "0.1.5"
5757
unicode_categories = "0.1.1"
5858

src/cargo-fmt/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,12 @@ fn run_rustfmt(
378378
}
379379

380380
fn get_cargo_metadata(manifest_path: Option<&Path>) -> Result<cargo_metadata::Metadata, io::Error> {
381-
match cargo_metadata::metadata(manifest_path) {
381+
let mut cmd = cargo_metadata::MetadataCommand::new();
382+
cmd.no_deps();
383+
if let Some(manifest_path) = manifest_path {
384+
cmd.manifest_path(manifest_path);
385+
}
386+
match cmd.exec() {
382387
Ok(metadata) => Ok(metadata),
383388
Err(error) => Err(io::Error::new(io::ErrorKind::Other, error.to_string())),
384389
}

0 commit comments

Comments
 (0)