diff --git a/xernel/kernel/src/fs/file.rs b/xernel/kernel/src/fs/file.rs index 5de8095b..47d4e95b 100644 --- a/xernel/kernel/src/fs/file.rs +++ b/xernel/kernel/src/fs/file.rs @@ -5,15 +5,12 @@ use super::vnode::VNode; pub struct File { node: Arc>, - offset: usize + offset: usize, } impl File { pub fn new(node: Arc>) -> Self { - Self { - node, - offset: 0 - } + Self { node, offset: 0 } } pub fn get_node(&self) -> Arc> { diff --git a/xernel/kernel/src/fs/vfs.rs b/xernel/kernel/src/fs/vfs.rs index 54ac28c3..6e3028b4 100644 --- a/xernel/kernel/src/fs/vfs.rs +++ b/xernel/kernel/src/fs/vfs.rs @@ -3,8 +3,8 @@ use alloc::{ sync::Arc, vec::Vec, }; -use libxernel::sync::Spinlock; use libxernel::boot::InitAtBoot; +use libxernel::sync::Spinlock; use super::{ mount::{Mount, VfsOps},