mirror of
https://github.com/panpaul/tiny_os
synced 2024-09-20 09:45:19 +08:00
chore: make clippy happy
This commit is contained in:
parent
0300ac3c5d
commit
308b523e7e
@ -7,7 +7,6 @@
|
||||
#![feature(concat_idents)]
|
||||
#![feature(let_chains)]
|
||||
#![feature(naked_functions)]
|
||||
#![feature(panic_info_message)]
|
||||
#![feature(thread_local)]
|
||||
// Test Infrastructure
|
||||
#![feature(custom_test_frameworks)]
|
||||
|
@ -9,7 +9,7 @@ pub fn handle_syscall(tcb: &mut TcbObject) -> SysResult {
|
||||
let cap_ptr = tcb.trapframe.get_reg(1);
|
||||
let cap = cspace
|
||||
.resolve_address_bits(cap_ptr, usize::BITS as usize)
|
||||
.map_err(|e| SysError::from(e))?;
|
||||
.map_err(SysError::from)?;
|
||||
|
||||
trace!("handle_syscall: info={:?} cap={:?}", info, cap);
|
||||
|
||||
@ -22,7 +22,7 @@ pub fn handle_syscall(tcb: &mut TcbObject) -> SysResult {
|
||||
let c = tcb.trapframe.get_reg(2) as u8 as char;
|
||||
crate::print!("{}", c);
|
||||
|
||||
return Ok(());
|
||||
Ok(())
|
||||
},
|
||||
_ => unimplemented!("handle_syscall: {:?}, {:?}", info.label(), cap),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user