Skip to content

Commit e4f2a19

Browse files
committed
Remove use of mod.rs in rust api
No longer needed as of rust 2018
1 parent cfc8b78 commit e4f2a19

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
mod block;
2-
mod function;
3-
mod instruction;
4-
mod lift;
1+
pub mod block;
2+
pub mod function;
3+
pub mod instruction;
4+
pub mod lift;
55
pub mod operation;
66

77
pub use self::block::*;
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@ use std::fmt;
2222

2323
use crate::architecture::Architecture;
2424
use crate::architecture::Register as ArchReg;
25-
use crate::function::Location;
2625

27-
mod block;
28-
mod expression;
29-
mod function;
30-
mod instruction;
31-
mod lifting;
26+
pub mod block;
27+
pub mod expression;
28+
pub mod function;
29+
pub mod instruction;
30+
pub mod lifting;
3231
pub mod operation;
3332

3433
pub use self::expression::*;

rust/src/llil/function.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use binaryninjacore_sys::BNNewLowLevelILFunctionReference;
2020
use std::borrow::Borrow;
2121
use std::marker::PhantomData;
2222

23+
use crate::function::Location;
2324
use crate::architecture::CoreArchitecture;
2425
use crate::basicblock::BasicBlock;
2526
use crate::rc::*;

rust/src/llil/lifting.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use std::mem;
1717

1818
use binaryninjacore_sys::{BNLowLevelILLabel, BNRegisterOrConstant};
1919

20+
use crate::function::Location;
2021
use crate::architecture::Architecture;
2122
use crate::architecture::Register as ArchReg;
2223
use crate::architecture::{
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
mod block;
2-
mod function;
3-
mod instruction;
4-
mod lift;
1+
pub mod block;
2+
pub mod function;
3+
pub mod instruction;
4+
pub mod lift;
55
pub mod operation;
66

77
pub use self::block::*;

0 commit comments

Comments
 (0)