Fix typo and indentation

This commit is contained in:
flip1995 2018-09-10 17:52:44 +02:00 committed by flip1995
parent 6819127f1e
commit ea4a80f215
No known key found for this signature in database
GPG Key ID: E8E897A5870E41C2
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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)]