添加github workflow,检查代码是否已经格式化 (#342)

* 添加github workflow,检查代码是否已经格式化
This commit is contained in:
LoGin
2023-08-24 18:50:52 +08:00
committed by GitHub
parent f09a98329c
commit 9a367aa7eb
14 changed files with 122 additions and 23 deletions

View File

@ -664,7 +664,6 @@ impl Syscall {
Ok(pipefd) => Self::pipe(pipefd),
},
}
}
SYS_UNLINK_AT => {

View File

@ -327,7 +327,7 @@ impl<'a> UserBufferWriter<'a> {
};
return Ok(chunks);
}
fn convert_one_with_offset<T>(src: &mut [u8], offset: usize) -> Result<&mut T, SystemError> {
if offset + core::mem::size_of::<T>() > src.len() {
return Err(SystemError::EINVAL);