Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Oct 7, 2024
1 parent 6cdc093 commit 11f65a0
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 10 deletions.
2 changes: 0 additions & 2 deletions api/rust/cargo/lief/src/objc.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use lief_ffi as ffi;

pub mod metadata;
pub mod class;
pub mod protocol;
Expand Down
5 changes: 1 addition & 4 deletions api/rust/cargo/lief/src/pdb/types.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 0 additions & 2 deletions api/rust/cargo/lief/src/pdb/types/method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion api/rust/examples/src/bin/dwarf_inspect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion api/rust/examples/src/bin/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 11f65a0

Please sign in to comment.