Fix lint errors

This commit is contained in:
Fabing Li
2025-02-27 03:09:05 +00:00
committed by Tate, Hongliang Tian
parent 82a2c4cdec
commit cbb4b4e631
24 changed files with 72 additions and 72 deletions

View File

@ -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.

View File

@ -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();

View File

@ -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: