From 0b1c3d2f0390525742d7e3fa68bdd3befe111e5f Mon Sep 17 00:00:00 2001 From: gwenn Date: Fri, 26 Jun 2020 19:14:07 +0200 Subject: Clippy --- src/completion.rs | 1 + src/tty/unix.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/completion.rs b/src/completion.rs index 79ac346..560e27d 100644 --- a/src/completion.rs +++ b/src/completion.rs @@ -203,6 +203,7 @@ impl FilenameCompleter { (start, path, ESCAPE_CHAR, &self.break_chars, Quote::None) }; let mut matches = filename_complete(&path, esc_char, break_chars, quote)?; + #[allow(clippy::unnecessary_sort_by)] matches.sort_by(|a, b| a.display().cmp(b.display())); Ok((start, matches)) } diff --git a/src/tty/unix.rs b/src/tty/unix.rs index a139ee1..e9c6c5a 100644 --- a/src/tty/unix.rs +++ b/src/tty/unix.rs @@ -41,7 +41,7 @@ impl AsRawFd for OutputStreamType { nix::ioctl_read_bad!(win_size, libc::TIOCGWINSZ, libc::winsize); -#[allow(clippy::identity_conversion)] +#[allow(clippy::useless_conversion)] fn get_win_size(fileno: &T) -> (usize, usize) { use std::mem::zeroed; -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0