Skip to content

Commit

Permalink
Makes linter happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed Mar 29, 2024
1 parent 351e7f7 commit 090b47f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,6 @@ pub(crate) fn get_ro_region(ro_section: &Section, elf: &[u8]) -> MemoryRegion {
mod test {
use super::*;
use crate::{
ebpf,
elf_parser::{
// FIXME consts::{ELFCLASS32, ELFDATA2MSB, ET_REL},
consts::{ELFCLASS32, ELFDATA2MSB, ET_REL},
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ trait ErrCheckedArithmetic: Sized {
fn err_checked_add(self, other: Self) -> Result<Self, ArithmeticOverflow>;
fn err_checked_sub(self, other: Self) -> Result<Self, ArithmeticOverflow>;
fn err_checked_mul(self, other: Self) -> Result<Self, ArithmeticOverflow>;
#[allow(dead_code)]
fn err_checked_div(self, other: Self) -> Result<Self, ArithmeticOverflow>;
}
struct ArithmeticOverflow;
Expand Down
2 changes: 1 addition & 1 deletion src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ macro_rules! declare_builtin_function {
#[cfg(test)]
mod tests {
use super::*;
use crate::{program::BuiltinFunction, syscalls, vm::TestContextObject};
use crate::{syscalls, vm::TestContextObject};

#[test]
fn test_builtin_program_eq() {
Expand Down

0 comments on commit 090b47f

Please sign in to comment.