Make triggering this lint less likely 📎

This commit is contained in:
Philipp Hansch 2019-10-08 21:35:12 +02:00
parent 5029dfe403
commit ad6d8a4700
No known key found for this signature in database
GPG key ID: 82AA61CAA11397E6
2 changed files with 2 additions and 2 deletions

View file

@ -336,7 +336,7 @@ impl EarlyLintPass for ProduceIce {
fn is_trigger_fn(fn_kind: FnKind<'_>) -> bool {
match fn_kind {
FnKind::ItemFn(ident, ..) | FnKind::Method(ident, ..) => {
ident.name.as_str() == "should_trigger_an_ice_in_clippy"
ident.name.as_str() == "it_looks_like_you_are_trying_to_kill_clippy"
},
FnKind::Closure(..) => false,
}

View file

@ -4,6 +4,6 @@
#![deny(clippy::internal)]
fn should_trigger_an_ice_in_clippy() {}
fn it_looks_like_you_are_trying_to_kill_clippy() {}
fn main() {}