Skip to content

Commit

Permalink
Fix typo and indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Nov 2, 2018
1 parent 6819127 commit ea4a80f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/attrs.rs
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/unknown_clippy_lints.stderr
@@ -1,12 +1,12 @@
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)]
| ^^^^^^^^^^^^^^^^^^
|
= 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)]
Expand Down

0 comments on commit ea4a80f

Please sign in to comment.