Skip to content

Commit 69faec3

Browse files
committed
Fix typo and indentation
1 parent 2bb45d1 commit 69faec3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clippy_lints/src/attrs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,13 +296,13 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &Vec<NestedMetaItem>
296296
if let CheckLintNameResult::Tool(Err((None, _))) = lint_store.check_lint_name(
297297
&name.as_str(),
298298
Some(tool_name.as_str()),
299-
);
299+
);
300300
then {
301301
span_lint_and_then(
302302
cx,
303303
UNKNOWN_CLIPPY_LINTS,
304304
lint.span,
305-
&format!("unknwon clippy lint: clippy::{}", name),
305+
&format!("unknown clippy lint: clippy::{}", name),
306306
|db| {
307307
if name.as_str().chars().any(|c| c.is_uppercase()) {
308308
let name_lower = name.as_str().to_lowercase().to_string();

tests/ui/unknown_clippy_lints.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
error: unknwon clippy lint: clippy::if_not_els
1+
error: unknown clippy lint: clippy::if_not_els
22
--> $DIR/unknown_clippy_lints.rs:5:8
33
|
44
5 | #[warn(clippy::if_not_els)]
55
| ^^^^^^^^^^^^^^^^^^
66
|
77
= note: `-D clippy::unknown-clippy-lints` implied by `-D warnings`
88

9-
error: unknwon clippy lint: clippy::All
9+
error: unknown clippy lint: clippy::All
1010
--> $DIR/unknown_clippy_lints.rs:2:10
1111
|
1212
2 | #![allow(clippy::All)]

0 commit comments

Comments
 (0)