Skip to content

Commit 90a8c67

Browse files
committed
fmt code
1 parent b27ffdd commit 90a8c67

File tree

2 files changed

+7
-6
lines changed
  • src/cargo/sources
  • tests/testsuite/cargo_add/add_no_vendored_packages_with_vendor

2 files changed

+7
-6
lines changed

src/cargo/sources/source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ pub enum QueryKind {
180180
/// whereas an `Registry` source may return dependencies that have the same
181181
/// canonicalization.
182182
Alternatives,
183-
/// Match a denpendency in all ways and will normalize the package name.
183+
/// Match a denpendency in all ways and will normalize the package name.
184184
/// Each source defines what normalizing means.
185185
Normalized,
186186
}

tests/testsuite/cargo_add/add_no_vendored_packages_with_vendor/mod.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use cargo_test_support::ProjectBuilder;
21
use cargo_test_support::compare::assert_ui;
32
use cargo_test_support::paths;
43
use cargo_test_support::prelude::*;
4+
use cargo_test_support::ProjectBuilder;
55

66
use cargo_test_support::curr_dir;
77

@@ -20,8 +20,9 @@ fn case() {
2020
.publish();
2121

2222
let project = ProjectBuilder::new(paths::root().join("in"))
23-
.file(".cargo/config",
24-
r#"
23+
.file(
24+
".cargo/config",
25+
r#"
2526
[source.crates-io]
2627
replace-with = "vendored-sources"
2728
@@ -32,7 +33,7 @@ directory = "./vendor"
3233
.file("src/lib.rs", "")
3334
.file(
3435
"Cargo.toml",
35-
r#"
36+
r#"
3637
[workspace]
3738
3839
[package]
@@ -43,7 +44,7 @@ version = "0.0.0"
4344
.build();
4445
let project_root = project.root();
4546
let cwd = &project_root;
46-
47+
4748
snapbox::cmd::Command::cargo_ui()
4849
.arg("add")
4950
.arg_line("linked_hash_map --registry alternative")

0 commit comments

Comments
 (0)