diff --git a/src/elf.rs b/src/elf.rs index daef8339c..6070c30c3 100644 --- a/src/elf.rs +++ b/src/elf.rs @@ -1139,7 +1139,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}, diff --git a/src/lib.rs b/src/lib.rs index def5dcf59..a1e740aba 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,6 +56,7 @@ trait ErrCheckedArithmetic: Sized { fn err_checked_add(self, other: Self) -> Result; fn err_checked_sub(self, other: Self) -> Result; fn err_checked_mul(self, other: Self) -> Result; + #[allow(dead_code)] fn err_checked_div(self, other: Self) -> Result; } struct ArithmeticOverflow; diff --git a/src/program.rs b/src/program.rs index 6605814d7..64752df36 100644 --- a/src/program.rs +++ b/src/program.rs @@ -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() {