silence clippy for now

This commit is contained in:
Kiril Videlov 2024-07-02 11:18:41 +03:00
parent 4db2698cda
commit a240a16cc5
No known key found for this signature in database
GPG Key ID: A4C733025427C471
2 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,8 @@ impl Socket for BufStream<UnixStream> {
async fn read_line(&mut self) -> Result<String, Self::Error> {
let mut buf = String::new();
<Self as AsyncBufReadExt>::read_line(self, &mut buf).await?;
// TODO: use an array of `char`
#[allow(clippy::manual_pattern_char_comparison)]
Ok(buf.trim_end_matches(|c| c == '\r' || c == '\n').into())
}

View File

@ -102,6 +102,8 @@ impl FileIdMap {
fn dir_scan_depth(is_recursive: bool) -> usize {
if is_recursive {
// TODO
#[allow(clippy::legacy_numeric_constants)]
usize::max_value()
} else {
1