diff --git a/api/rust/cargo/lief/src/objc.rs b/api/rust/cargo/lief/src/objc.rs index 769f5d6c50..f9aa38352f 100644 --- a/api/rust/cargo/lief/src/objc.rs +++ b/api/rust/cargo/lief/src/objc.rs @@ -1,5 +1,3 @@ -use lief_ffi as ffi; - pub mod metadata; pub mod class; pub mod protocol; diff --git a/api/rust/cargo/lief/src/pdb/types.rs b/api/rust/cargo/lief/src/pdb/types.rs index 201d836113..c0b5429f2e 100644 --- a/api/rust/cargo/lief/src/pdb/types.rs +++ b/api/rust/cargo/lief/src/pdb/types.rs @@ -1,11 +1,8 @@ use lief_ffi as ffi; -use crate::{common::FromFFI, Error}; +use crate::{common::FromFFI}; -use crate::to_conv_result; use std::marker::PhantomData; -use crate::debug_location::DebugLocation; -use crate::common::into_optional; use crate::declare_fwd_iterator; pub mod simple; diff --git a/api/rust/cargo/lief/src/pdb/types/method.rs b/api/rust/cargo/lief/src/pdb/types/method.rs index b48d9207af..1e27d6272e 100644 --- a/api/rust/cargo/lief/src/pdb/types/method.rs +++ b/api/rust/cargo/lief/src/pdb/types/method.rs @@ -3,8 +3,6 @@ use lief_ffi as ffi; use crate::common::FromFFI; use std::marker::PhantomData; -use crate::pdb::Type; -use crate::common::into_optional; use crate::declare_fwd_iterator; /// This class represents a Method (`LF_ONEMETHOD`) that can be defined in diff --git a/api/rust/examples/src/bin/dwarf_inspect.rs b/api/rust/examples/src/bin/dwarf_inspect.rs index dc600eba6c..d64e77b46a 100644 --- a/api/rust/examples/src/bin/dwarf_inspect.rs +++ b/api/rust/examples/src/bin/dwarf_inspect.rs @@ -14,7 +14,6 @@ fn main() -> ExitCode { } let path = std::env::args().last().unwrap(); - let mut file = std::fs::File::open(&path).expect("Can't open the file"); let dbg = lief::dwarf::load(&path).unwrap_or_else(|| { process::exit(1); diff --git a/api/rust/examples/src/bin/reader.rs b/api/rust/examples/src/bin/reader.rs index a1fc045e29..344854b3ec 100644 --- a/api/rust/examples/src/bin/reader.rs +++ b/api/rust/examples/src/bin/reader.rs @@ -2,7 +2,6 @@ use lief::Binary; use lief::generic; use lief::elf; -use lief::pe; fn explore_elf(elf: &elf::Binary) { let foo = elf as &dyn generic::Binary;