Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cce9231

Browse files
committedJan 27, 2022
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
2 parents 21b4a9c + a98e7ab commit cce9231

File tree

102 files changed

+1841
-997
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+1841
-997
lines changed
 

‎src/tools/clippy/CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ Released 2021-03-25
981981
[#6532](https://github.com/rust-lang/rust-clippy/pull/6532)
982982
* [`single_match`] Suggest `if` over `if let` when possible
983983
[#6574](https://github.com/rust-lang/rust-clippy/pull/6574)
984-
* [`ref_in_deref`] Use parentheses correctly in suggestion
984+
* `ref_in_deref` Use parentheses correctly in suggestion
985985
[#6609](https://github.com/rust-lang/rust-clippy/pull/6609)
986986
* [`stable_sort_primitive`] Clarify error message
987987
[#6611](https://github.com/rust-lang/rust-clippy/pull/6611)
@@ -3227,7 +3227,6 @@ Released 2018-09-13
32273227
[`redundant_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing
32283228
[`redundant_static_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
32293229
[`ref_binding_to_reference`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_binding_to_reference
3230-
[`ref_in_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_in_deref
32313230
[`ref_option_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_option_ref
32323231
[`regex_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#regex_macro
32333232
[`repeat_once`]: https://rust-lang.github.io/rust-clippy/master/index.html#repeat_once

‎src/tools/clippy/clippy_dev/src/bless.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ use walkdir::WalkDir;
99

1010
use crate::clippy_project_root;
1111

12+
#[cfg(not(windows))]
13+
static CARGO_CLIPPY_EXE: &str = "cargo-clippy";
14+
#[cfg(windows)]
15+
static CARGO_CLIPPY_EXE: &str = "cargo-clippy.exe";
16+
1217
static CLIPPY_BUILD_TIME: SyncLazy<Option<std::time::SystemTime>> = SyncLazy::new(|| {
1318
let mut path = std::env::current_exe().unwrap();
14-
path.set_file_name("cargo-clippy");
19+
path.set_file_name(CARGO_CLIPPY_EXE);
1520
fs::metadata(path).ok()?.modified().ok()
1621
});
1722

0 commit comments

Comments
 (0)
Please sign in to comment.