Skip to content

Commit 99f52a3

Browse files
committed
clippy fix
1 parent 47146d9 commit 99f52a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ pub fn prune_stacktrace<'tcx>(
195195
// This len check ensures that we don't somehow remove every frame, as doing so breaks
196196
// the primary error message.
197197
while stacktrace.len() > 1
198-
&& stacktrace.last().map_or(false, |frame| !machine.is_local(frame))
198+
&& stacktrace.last().is_some_and(|frame| !machine.is_local(frame))
199199
{
200200
stacktrace.pop();
201201
}

0 commit comments

Comments
 (0)