Skip to content

Commit 96ff004

Browse files
committed
inline a function that is only used in clippy
1 parent 7895b98 commit 96ff004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/lifetimes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ fn check_fn_inner<'tcx>(
176176
_ => None,
177177
});
178178
for bound in lifetimes {
179-
if !bound.is_static() && !bound.is_elided() {
179+
if bound.res != LifetimeName::Static && !bound.is_elided() {
180180
return;
181181
}
182182
}

0 commit comments

Comments
 (0)