Skip to content

Commit

Permalink
fmt code
Browse files Browse the repository at this point in the history
  • Loading branch information
LuuuXXX committed Jan 11, 2024
1 parent b27ffdd commit 90a8c67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/cargo/sources/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ pub enum QueryKind {
/// whereas an `Registry` source may return dependencies that have the same
/// canonicalization.
Alternatives,
/// Match a denpendency in all ways and will normalize the package name.
/// Match a denpendency in all ways and will normalize the package name.
/// Each source defines what normalizing means.
Normalized,
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use cargo_test_support::ProjectBuilder;
use cargo_test_support::compare::assert_ui;
use cargo_test_support::paths;
use cargo_test_support::prelude::*;
use cargo_test_support::ProjectBuilder;

use cargo_test_support::curr_dir;

Expand All @@ -20,8 +20,9 @@ fn case() {
.publish();

let project = ProjectBuilder::new(paths::root().join("in"))
.file(".cargo/config",
r#"
.file(
".cargo/config",
r#"
[source.crates-io]
replace-with = "vendored-sources"
Expand All @@ -32,7 +33,7 @@ directory = "./vendor"
.file("src/lib.rs", "")
.file(
"Cargo.toml",
r#"
r#"
[workspace]
[package]
Expand All @@ -43,7 +44,7 @@ version = "0.0.0"
.build();
let project_root = project.root();
let cwd = &project_root;

snapbox::cmd::Command::cargo_ui()
.arg("add")
.arg_line("linked_hash_map --registry alternative")
Expand Down

0 comments on commit 90a8c67

Please sign in to comment.