Fix warnings for sys_fdstat

This commit is contained in:
bjorn3
2026-04-12 18:30:03 +02:00
parent 38f36d406b
commit 3ff7872cd6
+2 -7
View File
@@ -1,19 +1,14 @@
use crate::{
alloc::string::ToString,
context::{
self,
file::{FileDescription, LockedFileDescription},
memory::AddrSpaceWrapper,
},
context::{file::LockedFileDescription, memory::AddrSpaceWrapper},
percpu,
scheme::{self, handles, KernelSchemes},
sync::CleanLockToken,
syscall::error::Result,
};
use alloc::{boxed::Box, string::String, sync::Arc, vec::Vec};
use alloc::{string::String, sync::Arc, vec::Vec};
use core::{fmt::Write, hash::Hash};
use hashbrown::HashMap;
use spin::RwLock;
pub fn resource(token: &mut CleanLockToken) -> Result<Vec<u8>> {
#[derive(Debug)]