Skip to content

Commit b911657

Browse files
committed
clippy fix
1 parent 26a7772 commit b911657

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/miri/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)