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 | 1fcd04ed49f2591e8667694bc623fde0ff6e42bc (patch) | |
| tree | 5775916bc18d7ffd2bec775a3253bc01b204568f /src/tools | |
| parent | 8a5847f5c40be178d3dd6fa7ce6fecfb837cabbb (diff) | |
| download | rust-1fcd04ed49f2591e8667694bc623fde0ff6e42bc.tar.gz rust-1fcd04ed49f2591e8667694bc623fde0ff6e42bc.zip | |
inline a function that is only used in clippy
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/clippy/clippy_lints/src/lifetimes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_lints/src/lifetimes.rs b/src/tools/clippy/clippy_lints/src/lifetimes.rs index ffef84d1fad..f5636945f20 100644 --- a/src/tools/clippy/clippy_lints/src/lifetimes.rs +++ b/src/tools/clippy/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; } } |
