Skip to content

Commit

Permalink
fix: Remove leading newline in vendor output
Browse files Browse the repository at this point in the history
This supersedes #11271
  • Loading branch information
epage committed Oct 21, 2022
1 parent b1b25a0 commit a9f704a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ strip-ansi-escapes = "0.1.0"
tar = { version = "0.4.38", default-features = false }
tempfile = "3.0"
termcolor = "1.1"
toml_edit = { version = "0.14.3", features = ["serde", "easy", "perf"] }
toml_edit = { version = "0.15.0", features = ["serde", "easy", "perf"] }
unicode-xid = "0.2.0"
url = "2.2.2"
walkdir = "2.2"
Expand Down
2 changes: 1 addition & 1 deletion benches/capture/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ description = "Tool for capturing a real-world workspace for benchmarking."
cargo_metadata = "0.14.0"
flate2 = { version = "1.0.3", default-features = false, features = ["zlib"] }
tar = { version = "0.4.38", default-features = false }
toml_edit = { version = "0.14.3", features = ["serde", "easy", "perf"] }
toml_edit = { version = "0.15.0", features = ["serde", "easy", "perf"] }
2 changes: 1 addition & 1 deletion crates/cargo-test-support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ remove_dir_all = "0.5"
serde_json = "1.0"
tar = { version = "0.4.38", default-features = false }
termcolor = "1.1.2"
toml_edit = { version = "0.14.3", features = ["serde", "easy", "perf"] }
toml_edit = { version = "0.15.0", features = ["serde", "easy", "perf"] }
url = "2.2.2"

[target.'cfg(windows)'.dependencies]
Expand Down
6 changes: 2 additions & 4 deletions tests/testsuite/vendor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ fn vendor_sample_config() {

p.cargo("vendor --respect-source-config")
.with_stdout(
r#"
[source.crates-io]
r#"[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
Expand Down Expand Up @@ -103,8 +102,7 @@ fn vendor_path_specified() {
// path is normalized by `ops::vendor` on Windows.
assert_eq!(
&String::from_utf8(output.stdout).unwrap(),
r#"
[source.crates-io]
r#"[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
Expand Down

0 comments on commit a9f704a

Please sign in to comment.