Skip to content

Commit 901ff8e

Browse files
committed
fix clippy lints
1 parent 16189c5 commit 901ff8e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/shims/x86/sse2.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
426426
let right_res =
427427
i8::try_from(right).unwrap_or(if right < 0 { i8::MIN } else { i8::MAX });
428428

429-
this.write_scalar(Scalar::from_i8(left_res.try_into().unwrap()), &left_dest)?;
430-
this.write_scalar(Scalar::from_i8(right_res.try_into().unwrap()), &right_dest)?;
429+
this.write_scalar(Scalar::from_i8(left_res), &left_dest)?;
430+
this.write_scalar(Scalar::from_i8(right_res), &right_dest)?;
431431
}
432432
}
433433
// Used to implement the _mm_packus_epi16 function.
@@ -487,11 +487,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
487487
let right_res =
488488
i16::try_from(right).unwrap_or(if right < 0 { i16::MIN } else { i16::MAX });
489489

490-
this.write_scalar(Scalar::from_i16(left_res.try_into().unwrap()), &left_dest)?;
491-
this.write_scalar(
492-
Scalar::from_i16(right_res.try_into().unwrap()),
493-
&right_dest,
494-
)?;
490+
this.write_scalar(Scalar::from_i16(left_res), &left_dest)?;
491+
this.write_scalar(Scalar::from_i16(right_res), &right_dest)?;
495492
}
496493
}
497494
// Used to implement _mm_min_sd and _mm_max_sd functions.

0 commit comments

Comments
 (0)