mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-09-11 12:25:42 +03:00
silence clippy for now
This commit is contained in:
parent
4db2698cda
commit
a240a16cc5
@ -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())
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user