Explorar el Código

src/helpers.rs,src/jit.rs: Formatting nits

Remove an unnecessary comment, and fix indent for an attribute following
the reduction of the dependency on libc in a previous commit.

Fixes: 404ccd0916b5 ("feat: Reduce dependency on libc")
Signed-off-by: Quentin Monnet <qmo@qmon.net>
Quentin Monnet hace 8 meses
padre
commit
e97a5223cd
Se han modificado 2 ficheros con 1 adiciones y 3 borrados
  1. 0 2
      src/helpers.rs
  2. 1 1
      src/jit.rs

+ 0 - 2
src/helpers.rs

@@ -239,8 +239,6 @@ pub fn strcmp (arg1: u64, arg2: u64, arg3: u64, unused4: u64, unused5: u64) -> u
 
 /// Returns a random u64 value comprised between `min` and `max` values (inclusive). Arguments 3 to
 /// 5 are unused.
-///
-/// This does not rely on `libc::rand()` and therefore can be called without `libc::srand()`.
 #[allow(dead_code)]
 #[allow(unused_variables)]
 #[cfg(feature = "std")]

+ 1 - 1
src/jit.rs

@@ -943,7 +943,7 @@ impl JitCompiler {
 
 pub struct JitMemory<'a> {
     contents: &'a mut [u8],
-    layout: alloc::Layout,
+    layout:   alloc::Layout,
     offset:   usize,
 }