Fix a couple of warnings
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use alloc::{borrow::Cow, sync::Arc, vec::Vec};
|
||||
use alloc::{sync::Arc, vec::Vec};
|
||||
use arrayvec::ArrayString;
|
||||
use core::{
|
||||
mem::{self, size_of},
|
||||
@@ -26,7 +26,6 @@ use crate::syscall::error::{Error, Result, EAGAIN, ESRCH};
|
||||
|
||||
use super::{
|
||||
empty_cr3,
|
||||
file::FileDescription,
|
||||
memory::{AddrSpaceWrapper, GrantFileRef},
|
||||
};
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
|
||||
use core::num::NonZeroUsize;
|
||||
|
||||
use alloc::{borrow::Cow, collections::BTreeSet, sync::Arc};
|
||||
use alloc::{collections::BTreeSet, sync::Arc};
|
||||
|
||||
use spin::{RwLock, RwLockReadGuard, RwLockWriteGuard};
|
||||
use spinning_top::RwSpinlock;
|
||||
|
||||
+2
-3
@@ -28,7 +28,6 @@ use alloc::{
|
||||
sync::{Arc, Weak},
|
||||
vec::Vec,
|
||||
};
|
||||
use arrayvec::ArrayString;
|
||||
use core::{
|
||||
mem::{self, size_of},
|
||||
num::NonZeroUsize,
|
||||
@@ -253,7 +252,7 @@ impl ProcScheme {
|
||||
&self,
|
||||
ty: OpenTy,
|
||||
operation_str: Option<&str>,
|
||||
flags: usize,
|
||||
_flags: usize,
|
||||
) -> Result<(usize, InternalFlags)> {
|
||||
let operation_name = operation_str.ok_or(Error::new(EINVAL))?;
|
||||
let (mut handle, positioned) = match ty {
|
||||
@@ -535,7 +534,7 @@ impl KernelScheme for ProcScheme {
|
||||
id: usize,
|
||||
buf: UserSliceWo,
|
||||
offset: u64,
|
||||
read_flags: u32,
|
||||
_read_flags: u32,
|
||||
_stored_flags: u32,
|
||||
) -> Result<usize> {
|
||||
// Don't hold a global lock during the context switch later on
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
//! Filesystem syscalls
|
||||
use core::{mem::size_of, num::NonZeroUsize};
|
||||
use core::num::NonZeroUsize;
|
||||
|
||||
use alloc::{sync::Arc, vec::Vec};
|
||||
use redox_path::RedoxPath;
|
||||
|
||||
Reference in New Issue
Block a user