diff --git a/src/history.rs b/src/history.rs index d82f1a7b4..d59f4ab17 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 5679ec14c..5aa8834fa 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 5675ded00..a7fa01fc8 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;