Skip to content

Commit a7b6230

Browse files
committed
Make clippy happy
Signed-off-by: hi-rustin <[email protected]>
1 parent 395e492 commit a7b6230

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
2. Create your feature branch: `git checkout -b my-new-feature`
55
3. Test it: `cargo test`
66
4. Lint it: `cargo +beta clippy --all --all-targets -- -D warnings`
7-
87
> We use `cargo clippy` to ensure high-quality code and to enforce a set of best practices for Rust programming. However, not all lints provided by `cargo clippy` are relevant or applicable to our project.
98
> We may choose to ignore some lints if they are unstable, experimental, or specific to our project.
109
> If you are unsure about a lint, please ask us in the [rustup Discord channel](https://discord.com/channels/442252698964721669/463480252723888159).
11-
12-
1. Commit your changes: `git commit -am 'Add some feature'`
13-
2. Push to the branch: `git push origin my-new-feature`
14-
3. Submit a pull request :D
10+
5. Commit your changes: `git commit -am 'Add some feature'`
11+
6. Push to the branch: `git push origin my-new-feature`
12+
7. Submit a pull request :D
1513

1614
For developing on `rustup` itself, you may want to install into a temporary
1715
directory, with a series of commands similar to this:

tests/suite/cli_rustup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ fn recursive_cargo() {
583583
let cargo_bin_path = config.cargodir.join("bin");
584584
let cargo_subcommand = cargo_bin_path.join(format!("cargo-foo{}", EXE_SUFFIX));
585585
fs::create_dir_all(&cargo_bin_path).unwrap();
586-
fs::copy(&real_mock_cargo, &cargo_subcommand).unwrap();
586+
fs::copy(real_mock_cargo, cargo_subcommand).unwrap();
587587

588588
// Verify the default behavior, which is currently broken on Windows.
589589
let args = &["cargo", "--recursive-cargo-subcommand"];

0 commit comments

Comments
 (0)