inline a function that is only used in clippy

This commit is contained in:
Oli Scherer 2024-02-01 08:35:37 +00:00
parent 8a5847f5c4
commit 1fcd04ed49
2 changed files with 1 additions and 5 deletions

View File

@ -163,10 +163,6 @@ pub fn suggestion_position(&self) -> (LifetimeSuggestionPosition, Span) {
(LifetimeSuggestionPosition::Normal, self.ident.span)
}
}
pub fn is_static(&self) -> bool {
self.res == LifetimeName::Static
}
}
/// A `Path` is essentially Rust's notion of a name; for instance,

View File

@ -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;
}
}