From 7fcd282b7336ac6b5a9814736d52c65af5873902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Mei=C3=9Fner?= Date: Tue, 27 Feb 2024 14:16:52 +0000 Subject: [PATCH] Makes linter happy. --- src/elf.rs | 1 - src/lib.rs | 1 + src/program.rs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) 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() {