chore: make clippy happy

This commit is contained in:
Paul Pan 2024-07-03 21:08:26 +08:00
parent 0300ac3c5d
commit 308b523e7e
2 changed files with 2 additions and 3 deletions

View File

@ -7,7 +7,6 @@
#![feature(concat_idents)] #![feature(concat_idents)]
#![feature(let_chains)] #![feature(let_chains)]
#![feature(naked_functions)] #![feature(naked_functions)]
#![feature(panic_info_message)]
#![feature(thread_local)] #![feature(thread_local)]
// Test Infrastructure // Test Infrastructure
#![feature(custom_test_frameworks)] #![feature(custom_test_frameworks)]

View File

@ -9,7 +9,7 @@ pub fn handle_syscall(tcb: &mut TcbObject) -> SysResult {
let cap_ptr = tcb.trapframe.get_reg(1); let cap_ptr = tcb.trapframe.get_reg(1);
let cap = cspace let cap = cspace
.resolve_address_bits(cap_ptr, usize::BITS as usize) .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); 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; let c = tcb.trapframe.get_reg(2) as u8 as char;
crate::print!("{}", c); crate::print!("{}", c);
return Ok(()); Ok(())
}, },
_ => unimplemented!("handle_syscall: {:?}, {:?}", info.label(), cap), _ => unimplemented!("handle_syscall: {:?}, {:?}", info.label(), cap),
} }