Skip to content

Commit

Permalink
fix: clippy::legacy_numeric_constants
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes authored and mkroening committed Apr 22, 2024
1 parent 79087bc commit 56fa37b
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 10 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/riscv64/mm/paging.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use core::marker::PhantomData;
use core::{ptr, usize};
use core::ptr;

use align_address::Align;
use hermit_sync::SpinMutex;
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/drivers/virtio/transport/mmio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
//! The module contains ...
#![allow(dead_code)]

use core::ptr;
use core::ptr::{read_volatile, write_volatile};
use core::sync::atomic::{fence, Ordering};
use core::{ptr, u8};

#[cfg(any(feature = "tcp", feature = "udp"))]
use crate::arch::kernel::interrupts::*;
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 56fa37b

Please sign in to comment.