Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
0x6D70 committed Jan 17, 2024
1 parent 7a5d950 commit eb368d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions xernel/kernel/src/fs/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@ use super::vnode::VNode;

pub struct File {
node: Arc<Spinlock<VNode>>,
offset: usize
offset: usize,
}

impl File {
pub fn new(node: Arc<Spinlock<VNode>>) -> Self {
Self {
node,
offset: 0
}
Self { node, offset: 0 }
}

pub fn get_node(&self) -> Arc<Spinlock<VNode>> {
Expand Down
2 changes: 1 addition & 1 deletion xernel/kernel/src/fs/vfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit eb368d1

Please sign in to comment.