Skip to content

Commit

Permalink
removing the import of legacy numeric constants
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Apr 21, 2024
1 parent 2884076 commit 846c2c7
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/arch/aarch64/kernel/pci.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use alloc::vec::Vec;
use core::{str, u32, u64, u8};
use core::str;

use arm_gic::gicv3::{IntId, Trigger};
use bit_field::BitField;
Expand Down
2 changes: 1 addition & 1 deletion src/arch/aarch64/mm/paging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use core::arch::asm;
use core::marker::PhantomData;
use core::{fmt, mem, ptr, usize};
use core::{fmt, mem, ptr};

use align_address::Align;

Expand Down
2 changes: 1 addition & 1 deletion src/arch/x86_64/kernel/apic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use core::arch::x86_64::_mm_mfence;
use core::fmt;
use core::hint::spin_loop;
use core::sync::atomic::Ordering;
use core::{cmp, mem, ptr, u32};
use core::{cmp, mem, ptr};

use align_address::Align;
#[cfg(feature = "smp")]
Expand Down
2 changes: 0 additions & 2 deletions src/arch/x86_64/kernel/pci.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use core::{u32, u8};

use pci_types::{ConfigRegionAccess, PciAddress, PciHeader};
use x86::io::*;

Expand Down
2 changes: 1 addition & 1 deletion src/arch/x86_64/kernel/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use core::arch::x86_64::{
use core::hint::spin_loop;
use core::num::NonZeroU32;
use core::sync::atomic::{AtomicU64, Ordering};
use core::{fmt, ptr, u32};
use core::{fmt, ptr};

use hermit_entry::boot_info::PlatformInfo;
use hermit_sync::Lazy;
Expand Down
2 changes: 1 addition & 1 deletion src/fs/fuse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ use alloc::string::String;
use alloc::sync::Arc;
use alloc::vec::Vec;
use core::ffi::CStr;
use core::future;
use core::mem::MaybeUninit;
use core::sync::atomic::{AtomicU64, Ordering};
use core::task::Poll;
use core::{future, u32, u8};

use async_lock::Mutex;
use async_trait::async_trait;
Expand Down
1 change: 0 additions & 1 deletion src/syscalls/tasks.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use alloc::collections::BTreeMap;
use core::isize;
#[cfg(feature = "newlib")]
use core::sync::atomic::{AtomicUsize, Ordering};

Expand Down

0 comments on commit 846c2c7

Please sign in to comment.