From a55b343fdb8b8e0e84ed465083f0059b656ee578 Mon Sep 17 00:00:00 2001 From: gwenn Date: Sat, 24 Feb 2024 11:13:12 +0100 Subject: [PATCH] Fix clippy warnings --- src/history.rs | 2 -- src/layout.rs | 2 +- src/tty/test.rs | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/history.rs b/src/history.rs index d82f1a7b4c..d59f4ab17c 100644 --- a/src/history.rs +++ b/src/history.rs @@ -11,8 +11,6 @@ use std::collections::VecDeque; use std::fs::{File, OpenOptions}; #[cfg(feature = "with-file-history")] use std::io::SeekFrom; -#[cfg(feature = "with-file-history")] -use std::iter::DoubleEndedIterator; use std::ops::Index; use std::path::Path; #[cfg(feature = "with-file-history")] diff --git a/src/layout.rs b/src/layout.rs index 5679ec14ce..5aa8834fa0 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -1,4 +1,4 @@ -use std::cmp::{Ord, Ordering, PartialOrd}; +use std::cmp::Ordering; #[derive(Copy, Clone, Debug, Default, PartialEq, Eq)] pub struct Position { diff --git a/src/tty/test.rs b/src/tty/test.rs index 5675ded003..a7fa01fc86 100644 --- a/src/tty/test.rs +++ b/src/tty/test.rs @@ -1,5 +1,4 @@ //! Tests specific definitions -use std::iter::IntoIterator; use std::slice::Iter; use std::vec::IntoIter;