Skip to content

Commit 56a9a28

Browse files
committed
Cleanup formatting
1 parent a2bdb3b commit 56a9a28

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/shims/foreign_items.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -969,13 +969,14 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
969969
}
970970

971971
// Shims the linux 'getrandom()' syscall
972-
fn linux_getrandom<'mir, 'tcx>(this: &mut MiriEvalContext<'mir, 'tcx>,
973-
args: &[OpTy<'tcx, Tag>],
974-
dest: PlaceTy<'tcx, Tag>) -> InterpResult<'tcx> {
972+
fn linux_getrandom<'tcx>(
973+
this: &mut MiriEvalContext<'_, 'tcx>,
974+
args: &[OpTy<'tcx, Tag>],
975+
dest: PlaceTy<'tcx, Tag>
976+
) -> InterpResult<'tcx> {
975977
let ptr = this.read_scalar(args[0])?.not_undef()?;
976978
let len = this.read_scalar(args[1])?.to_usize(this)?;
977979

978-
979980
// The only supported flags are GRND_RANDOM and GRND_NONBLOCK,
980981
// neither of which have any effect on our current PRNG
981982
let _flags = this.read_scalar(args[2])?.to_i32()?;

0 commit comments

Comments
 (0)