Fix typo and indentation
This commit is contained in:
parent
6819127f1e
commit
ea4a80f215
@ -296,13 +296,13 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &Vec<NestedMetaItem>
|
||||
if let CheckLintNameResult::Tool(Err((None, _))) = lint_store.check_lint_name(
|
||||
&name.as_str(),
|
||||
Some(tool_name.as_str()),
|
||||
);
|
||||
);
|
||||
then {
|
||||
span_lint_and_then(
|
||||
cx,
|
||||
UNKNOWN_CLIPPY_LINTS,
|
||||
lint.span,
|
||||
&format!("unknwon clippy lint: clippy::{}", name),
|
||||
&format!("unknown clippy lint: clippy::{}", name),
|
||||
|db| {
|
||||
if name.as_str().chars().any(|c| c.is_uppercase()) {
|
||||
let name_lower = name.as_str().to_lowercase().to_string();
|
||||
|
@ -1,4 +1,4 @@
|
||||
error: unknwon clippy lint: clippy::if_not_els
|
||||
error: unknown clippy lint: clippy::if_not_els
|
||||
--> $DIR/unknown_clippy_lints.rs:5:8
|
||||
|
|
||||
5 | #[warn(clippy::if_not_els)]
|
||||
@ -6,7 +6,7 @@ error: unknwon clippy lint: clippy::if_not_els
|
||||
|
|
||||
= note: `-D clippy::unknown-clippy-lints` implied by `-D warnings`
|
||||
|
||||
error: unknwon clippy lint: clippy::All
|
||||
error: unknown clippy lint: clippy::All
|
||||
--> $DIR/unknown_clippy_lints.rs:2:10
|
||||
|
|
||||
2 | #![allow(clippy::All)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user