mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Make triggering this lint less likely 📎
This commit is contained in:
parent
5029dfe403
commit
ad6d8a4700
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
Loading…
Reference in a new issue