]> git.lizzy.rs Git - rust.git/commitdiff
Cleanup formatting
authorAaron Hill <aa1ronham@gmail.com>
Sun, 4 Aug 2019 19:53:38 +0000 (15:53 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Sun, 4 Aug 2019 20:12:24 +0000 (16:12 -0400)
src/shims/foreign_items.rs

index 6ae99c9bc15cd935fac6f34c030319ada25f9644..24bdc98fe8eb713233fe08672f0ae5426a358b4f 100644 (file)
@@ -969,13 +969,14 @@ fn eval_path_scalar(&mut self, path: &[&str]) -> InterpResult<'tcx, Option<Scala
 }
 
 // Shims the linux 'getrandom()' syscall
-fn linux_getrandom<'mir, 'tcx>(this: &mut MiriEvalContext<'mir, 'tcx>,
-                               args: &[OpTy<'tcx, Tag>],
-                               dest: PlaceTy<'tcx, Tag>) -> InterpResult<'tcx> {
+fn linux_getrandom<'tcx>(
+    this: &mut MiriEvalContext<'_, 'tcx>,
+    args: &[OpTy<'tcx, Tag>],
+    dest: PlaceTy<'tcx, Tag>
+) -> InterpResult<'tcx> {
     let ptr = this.read_scalar(args[0])?.not_undef()?;
     let len = this.read_scalar(args[1])?.to_usize(this)?;
 
-
     // The only supported flags are GRND_RANDOM and GRND_NONBLOCK,
     // neither of which have any effect on our current PRNG
     let _flags = this.read_scalar(args[2])?.to_i32()?;