Skip to content

Commit 11f70f2

Browse files
committed
fix clippy warning
1 parent 31f6350 commit 11f70f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/native_lib.rs

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

0 commit comments

Comments
 (0)