From 256fc33dd5cda18511408de6dea8582fc1c3ba4c Mon Sep 17 00:00:00 2001 From: Jason White Date: Tue, 4 Jan 2022 18:13:19 -0800 Subject: [PATCH] Remove extern crate usage Summary: This hasn't been necessary for quite a while now. Reviewed By: wangbj Differential Revision: D33411662 fbshipit-source-id: e6f88834521809b59323aa9d14796ff31571e7b6 --- reverie-ptrace/src/lib.rs | 3 --- reverie-ptrace/src/trace/mod.rs | 2 +- reverie-syscalls/src/args/mod.rs | 2 +- reverie-syscalls/src/args/poll.rs | 2 +- reverie-syscalls/src/lib.rs | 3 --- 5 files changed, 3 insertions(+), 9 deletions(-) diff --git a/reverie-ptrace/src/lib.rs b/reverie-ptrace/src/lib.rs index 532ebe6..afb391e 100644 --- a/reverie-ptrace/src/lib.rs +++ b/reverie-ptrace/src/lib.rs @@ -60,6 +60,3 @@ pub use tracer::spawn_fn_with_config; pub use tracer::GdbConnection; pub use tracer::Tracer; pub use tracer::TracerBuilder; - -#[macro_use] -extern crate bitflags; diff --git a/reverie-ptrace/src/trace/mod.rs b/reverie-ptrace/src/trace/mod.rs index efc22e7..c925af7 100644 --- a/reverie-ptrace/src/trace/mod.rs +++ b/reverie-ptrace/src/trace/mod.rs @@ -507,7 +507,7 @@ struct ptrace_peeksiginfo_args { nr: u32, } -bitflags! { +bitflags::bitflags! { /// Flags for ptrace peeksiginfo pub struct PeekSigInfoFlags: u32 { /// dumping signals from the process-wide signal queue. signals are diff --git a/reverie-syscalls/src/args/mod.rs b/reverie-syscalls/src/args/mod.rs index 56bdc05..04a120a 100644 --- a/reverie-syscalls/src/args/mod.rs +++ b/reverie-syscalls/src/args/mod.rs @@ -401,7 +401,7 @@ impl<'a> Displayable for Option> { } } -bitflags! { +bitflags::bitflags! { /// stx_mask from statx, see linux/stat.h #[derive(Serialize, Deserialize)] pub struct StatxMask: u32 { diff --git a/reverie-syscalls/src/args/poll.rs b/reverie-syscalls/src/args/poll.rs index fa55905..88c0d87 100644 --- a/reverie-syscalls/src/args/poll.rs +++ b/reverie-syscalls/src/args/poll.rs @@ -55,7 +55,7 @@ impl Displayable for PollFd { } } -bitflags! { +bitflags::bitflags! { /// Flags for [`PollFd`]. #[derive(Default, Serialize, Deserialize)] pub struct PollFlags: libc::c_short { diff --git a/reverie-syscalls/src/lib.rs b/reverie-syscalls/src/lib.rs index 688c48c..08a9f57 100644 --- a/reverie-syscalls/src/lib.rs +++ b/reverie-syscalls/src/lib.rs @@ -21,9 +21,6 @@ #[macro_use] mod macros; -#[macro_use] -extern crate bitflags; - mod args; mod display; mod memory;