mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 01:43:22 +00:00
Fix lint errors
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
82a2c4cdec
commit
cbb4b4e631
@ -27,7 +27,7 @@ use crate::{
|
||||
|
||||
const BUFFER_CAPACITY: usize = 4096;
|
||||
|
||||
/// Pesudo terminal master.
|
||||
/// Pseudo terminal master.
|
||||
/// Internally, it has two buffers.
|
||||
/// One is inside ldisc, which is written by master and read by slave,
|
||||
/// the other is a ring buffer, which is written by slave and read by master.
|
||||
|
@ -1067,8 +1067,8 @@ impl ExfatInode {
|
||||
}
|
||||
}
|
||||
|
||||
struct EmptyVistor;
|
||||
impl DirentVisitor for EmptyVistor {
|
||||
struct EmptyVisitor;
|
||||
impl DirentVisitor for EmptyVisitor {
|
||||
fn visit(&mut self, name: &str, ino: u64, type_: InodeType, offset: usize) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
@ -1458,7 +1458,7 @@ impl Inode for ExfatInode {
|
||||
return Ok(0);
|
||||
}
|
||||
|
||||
let mut empty_visitor = EmptyVistor;
|
||||
let mut empty_visitor = EmptyVisitor;
|
||||
|
||||
let dir_read = {
|
||||
let fs = inner.fs();
|
||||
|
@ -182,7 +182,7 @@ impl Clone for RangeLockItem {
|
||||
/// Rule of ordering:
|
||||
/// Locks are sorted by owner process, then by the starting offset.
|
||||
///
|
||||
/// Rule of mergeing:
|
||||
/// Rule of merging:
|
||||
/// Adjacent and overlapping locks with same owner and type will be merged.
|
||||
///
|
||||
/// Rule of updating:
|
||||
|
Reference in New Issue
Block a user