Skip to content

Commit 2ce5e52

Browse files
committed
codecheck: Fix warnings
1 parent 17a0ee7 commit 2ce5e52

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

os/src/fs/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ pub trait File: Send + Sync {
1111
fn write(&self, buf: UserBuffer) -> usize;
1212
}
1313

14-
pub use inode::{list_apps, open_file, OSInode, OpenFlags};
15-
pub use pipe::{make_pipe, Pipe};
14+
pub use inode::{list_apps, open_file, OpenFlags};
15+
pub use pipe::make_pipe;
1616
pub use stdio::{Stdin, Stdout};

os/src/mm/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub use memory_set::{kernel_token, MapPermission, MemorySet, KERNEL_SPACE};
1212
use page_table::PTEFlags;
1313
pub use page_table::{
1414
translated_byte_buffer, translated_ref, translated_refmut, translated_str, PageTable,
15-
PageTableEntry, UserBuffer, UserBufferIterator,
15+
PageTableEntry, UserBuffer,
1616
};
1717

1818
pub fn init() {

user/src/bin/adder_atomic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ extern crate user_lib;
66
extern crate alloc;
77

88
use alloc::vec::Vec;
9-
use core::sync::atomic::{AtomicBool, Ordering};
109
use core::ptr::addr_of_mut;
10+
use core::sync::atomic::{AtomicBool, Ordering};
1111
use user_lib::{exit, get_time, thread_create, waittid, yield_};
1212

1313
static mut A: usize = 0;

user/src/bin/eisenberg.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ extern crate alloc;
77
extern crate core;
88

99
use alloc::vec::Vec;
10-
use core::{ptr::{addr_of, addr_of_mut, read_volatile, write_volatile}, sync::atomic::{AtomicUsize, Ordering}};
10+
use core::{
11+
ptr::{addr_of, addr_of_mut, read_volatile, write_volatile},
12+
sync::atomic::{AtomicUsize, Ordering},
13+
};
1114
use user_lib::{exit, sleep, thread_create, waittid};
1215

1316
const N: usize = 2;

0 commit comments

Comments
 (0)