fix clippy warning

This commit is contained in:
Ralf Jung 2025-01-10 15:55:48 +01:00
parent a86d0f3baf
commit ba44c88167

View file

@ -72,7 +72,7 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
}
// Functions with no declared return type (i.e., the default return)
// have the output_type `Tuple([])`.
ty::Tuple(t_list) if t_list.len() == 0 => {
ty::Tuple(t_list) if t_list.is_empty() => {
unsafe { ffi::call::<()>(ptr, libffi_args.as_slice()) };
return interp_ok(ImmTy::uninit(dest.layout));
}