clippy fix

This commit is contained in:
Ralf Jung 2024-11-15 07:04:38 +01:00
parent 26a7772ecd
commit b9116571ff

View file

@ -195,7 +195,7 @@ pub fn prune_stacktrace<'tcx>(
// This len check ensures that we don't somehow remove every frame, as doing so breaks
// the primary error message.
while stacktrace.len() > 1
&& stacktrace.last().map_or(false, |frame| !machine.is_local(frame))
&& stacktrace.last().is_some_and(|frame| !machine.is_local(frame))
{
stacktrace.pop();
}