inline a function that is only used in clippy
This commit is contained in:
parent
8a5847f5c4
commit
1fcd04ed49
@ -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,
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user