diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-02-01 08:35:37 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-02-08 07:37:02 +0000 |
| commit | 96ff004a683e8b33bd41e31316dfc5d7e51d14d2 (patch) | |
| tree | 589484ca60d972e50dbf387360783cb79ef13af0 | |
| parent | 7895b987123258e9ab166ebd0e5baff81207ec67 (diff) | |
| download | rust-96ff004a683e8b33bd41e31316dfc5d7e51d14d2.tar.gz rust-96ff004a683e8b33bd41e31316dfc5d7e51d14d2.zip | |
inline a function that is only used in clippy
| -rw-r--r-- | clippy_lints/src/lifetimes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/lifetimes.rs b/clippy_lints/src/lifetimes.rs index ffef84d1fad..f5636945f20 100644 --- a/clippy_lints/src/lifetimes.rs +++ b/clippy_lints/src/lifetimes.rs @@ -176,7 +176,7 @@ fn check_fn_inner<'tcx>( _ => None, }); for bound in lifetimes { - if !bound.is_static() && !bound.is_elided() { + if bound.res != LifetimeName::Static && !bound.is_elided() { return; } } |
