Skip to content

Commit

Permalink
style: remove unused imports (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Jan 21, 2024
1 parent b4bf635 commit d95332b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cordyceps/src/loom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ mod inner {

#[cfg(not(loom))]
mod inner {
#![allow(dead_code)]
#![allow(dead_code, unused_imports)]
pub(crate) mod sync {
pub use core::sync::*;

Expand Down
2 changes: 1 addition & 1 deletion cordyceps/src/mpsc_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ mod tests {
mod test_util {
use super::*;
use crate::loom::alloc;
pub use std::{boxed::Box, pin::Pin, println, ptr, vec, vec::Vec};
pub use std::{boxed::Box, pin::Pin, ptr, vec::Vec};

pub(super) struct Entry {
links: Links<Entry>,
Expand Down
1 change: 1 addition & 0 deletions hal-x86_64/src/interrupt/apic/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ impl Default for DeliveryMode {
}
}

#[cfg(test)]
mod test {
use super::*;

Expand Down
1 change: 0 additions & 1 deletion util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub mod sync;

pub(crate) mod loom;

pub use self::macros::*;
pub use cordyceps as intrusive;
pub use mycelium_bitfield as bits;

Expand Down

0 comments on commit d95332b

Please sign in to comment.