Skip to content

Commit

Permalink
codecheck: Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfcyx committed Jan 20, 2024
1 parent 8c3f6c2 commit 64004a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions os/src/fs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ pub trait File: Send + Sync {
fn write(&self, buf: UserBuffer) -> usize;
}

pub use inode::{list_apps, open_file, OSInode, OpenFlags};
pub use pipe::{make_pipe, Pipe};
pub use inode::{list_apps, open_file, OpenFlags};
pub use pipe::make_pipe;
pub use stdio::{Stdin, Stdout};
2 changes: 1 addition & 1 deletion os/src/mm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub use memory_set::{kernel_token, MapPermission, MemorySet, KERNEL_SPACE};
use page_table::PTEFlags;
pub use page_table::{
translated_byte_buffer, translated_ref, translated_refmut, translated_str, PageTable,
PageTableEntry, UserBuffer, UserBufferIterator,
PageTableEntry, UserBuffer,
};

pub fn init() {
Expand Down
2 changes: 1 addition & 1 deletion os/src/task/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ fn call_user_signal_handler(sig: usize, signal: SignalFlags) {
task_inner.signals ^= signal;

// backup trapframe
let mut trap_ctx = task_inner.get_trap_cx();
let trap_ctx = task_inner.get_trap_cx();
task_inner.trap_ctx_backup = Some(*trap_ctx);

// modify trapframe
Expand Down

0 comments on commit 64004a4

Please sign in to comment.