Skip to content

Commit

Permalink
remove import
Browse files Browse the repository at this point in the history
  • Loading branch information
tompro committed Feb 24, 2024
1 parent d8c94a6 commit 0136996
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/kernel/src/errno.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::convert::Infallible;
use std::error::Error;
use std::num::NonZeroI32;
use thiserror::Error;

// This file contains errno used in a PS4 system. The value of each errno must be the same as the
// PS4.
Expand Down
1 change: 0 additions & 1 deletion src/kernel/src/fs/dev/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use crate::errno::{Errno, EEXIST, ENOENT, EOPNOTSUPP};
use crate::ucred::{Gid, Ucred, Uid};
use bitflags::bitflags;
use macros::Errno;
use std::num::NonZeroI32;
use std::sync::atomic::{AtomicU32, AtomicUsize, Ordering};
use std::sync::{Arc, Mutex, RwLock};
use thiserror::Error;
Expand Down
1 change: 0 additions & 1 deletion src/kernel/src/fs/host/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use param::Param;
use std::collections::HashMap;
use std::fs::create_dir;
use std::io::ErrorKind;
use std::num::NonZeroI32;
use std::path::{Path, PathBuf};
use std::sync::{Arc, Weak};
use thiserror::Error;
Expand Down
1 change: 0 additions & 1 deletion src/kernel/src/fs/host/vnode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use crate::process::VThread;
use crate::ucred::{Gid, Uid};
use macros::Errno;
use std::borrow::Cow;
use std::num::NonZeroI32;
use std::sync::Arc;
use thiserror::Error;

Expand Down
2 changes: 1 addition & 1 deletion src/kernel/src/fs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use macros::vpath;
use macros::Errno;
use param::Param;
use std::fmt::{Display, Formatter};
use std::num::{NonZeroI32, TryFromIntError};
use std::num::TryFromIntError;
use std::path::PathBuf;
use std::sync::Arc;
use thiserror::Error;
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/src/fs/null/vnode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::{
process::VThread,
};
use macros::Errno;
use std::{num::NonZeroI32, sync::Arc};
use std::sync::Arc;
use thiserror::Error;

#[derive(Debug)]
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/src/shm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::{
syscalls::{SysErr, SysIn, SysOut, Syscalls},
ucred::{Gid, Ucred, Uid},
};
use std::{convert::Infallible, num::NonZeroI32, sync::Arc};
use std::{convert::Infallible, sync::Arc};

pub struct SharedMemoryManager {
mm: Arc<MemoryManager>,
Expand Down

0 comments on commit 0136996

Please sign in to comment.