diff --git a/compiler/rustc_target/src/spec/targets/x86_64_unknown_mikros.rs b/compiler/rustc_target/src/spec/targets/x86_64_unknown_mikros.rs
index 2b27b730f9a..4c8e9cfb426 100644
--- a/compiler/rustc_target/src/spec/targets/x86_64_unknown_mikros.rs
+++ b/compiler/rustc_target/src/spec/targets/x86_64_unknown_mikros.rs
@@ -1,4 +1,4 @@
-use crate::spec::{base, PanicStrategy, Target, TargetMetadata};
+use crate::spec::{PanicStrategy, Target, TargetMetadata, base};
pub(crate) fn target() -> Target {
let mut base = base::mikros::opts();
diff --git a/library/std/src/os/mikros/loader.rs b/library/std/src/os/mikros/loader.rs
index ee6ed19f948..47622fd36ab 100644
--- a/library/std/src/os/mikros/loader.rs
+++ b/library/std/src/os/mikros/loader.rs
@@ -1,13 +1,13 @@
#![stable(feature = "mikros", since = "1.80.0")]
+use elf::ElfBytes;
use elf::abi::{
PT_DYNAMIC, PT_GNU_EH_FRAME, PT_GNU_RELRO, PT_GNU_STACK, PT_LOAD, PT_NULL, PT_PHDR,
R_X86_64_RELATIVE, SHT_REL, SHT_RELA,
};
use elf::endian::AnyEndian;
-use elf::ElfBytes;
-use x86_64::structures::paging::Page;
use x86_64::VirtAddr;
+use x86_64::structures::paging::Page;
use super::address_space::AddressSpace;
use crate::ptr;
diff --git a/library/std/src/sys/pal/mikros/alloc/linked_list_allocator/hole.rs b/library/std/src/sys/pal/mikros/alloc/linked_list_allocator/hole.rs
index 24ffdb54dae..632e83883ec 100644
--- a/library/std/src/sys/pal/mikros/alloc/linked_list_allocator/hole.rs
+++ b/library/std/src/sys/pal/mikros/alloc/linked_list_allocator/hole.rs
@@ -1,7 +1,7 @@
use core::alloc::Layout;
use core::mem;
use core::mem::{align_of, size_of};
-use core::ptr::{null_mut, NonNull};
+use core::ptr::{NonNull, null_mut};
use super::{align_down_size, align_up, align_up_size};
diff --git a/library/std/src/sys/pal/mikros/common.rs b/library/std/src/sys/pal/mikros/common.rs
index 75464a4e0e2..ac9324f5d98 100644
--- a/library/std/src/sys/pal/mikros/common.rs
+++ b/library/std/src/sys/pal/mikros/common.rs
@@ -32,7 +32,3 @@ pub fn decode_error_kind(_code: i32) -> crate::io::ErrorKind {
pub fn abort_internal() -> ! {
core::intrinsics::abort();
}
-
-pub fn hashmap_random_keys() -> (u64, u64) {
- (1, 2)
-}
diff --git a/library/std/src/sys/pal/mikros/stdio.rs b/library/std/src/sys/pal/mikros/stdio.rs
index b46dea6c49f..6641706e6f6 100644
--- a/library/std/src/sys/pal/mikros/stdio.rs
+++ b/library/std/src/sys/pal/mikros/stdio.rs
@@ -3,8 +3,8 @@
use super::syscalls;
use crate::io;
use crate::os::mikros::ipc::rpc;
-use crate::sync::atomic::AtomicUsize;
use crate::sync::OnceLock;
+use crate::sync::atomic::AtomicUsize;
pub(crate) static STDIN_FD: OnceLock