Skip to content

Commit

Permalink
src/helpers.rs,src/jit.rs: Formatting nits
Browse files Browse the repository at this point in the history
Remove an unnecessary comment, and fix indent for an attribute following
the reduction of the dependency on libc in a previous commit.

Fixes: 404ccd0 ("feat: Reduce dependency on libc")
Signed-off-by: Quentin Monnet <qmo@qmon.net>
qmonnet committed Oct 29, 2024
1 parent 404ccd0 commit e97a522
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/helpers.rs
Original file line number Diff line number Diff line change
@@ -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")]
2 changes: 1 addition & 1 deletion src/jit.rs
Original file line number Diff line number Diff line change
@@ -943,7 +943,7 @@ impl JitCompiler {

pub struct JitMemory<'a> {
contents: &'a mut [u8],
layout: alloc::Layout,
layout: alloc::Layout,
offset: usize,
}

0 comments on commit e97a522

Please sign in to comment.