From 6551db100de31291db27b6a11821ad6c5c421a7e Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 17 Mar 2024 13:01:26 +0100 Subject: [PATCH] Remove some more redundant imports Signed-off-by: Uli Schlachter --- x11rb/src/image.rs | 2 -- x11rb/src/properties.rs | 2 -- xtrace-example/src/connection.rs | 1 - xtrace-example/src/connection_inner.rs | 1 - 4 files changed, 6 deletions(-) diff --git a/x11rb/src/image.rs b/x11rb/src/image.rs index 3549f92e..d85cde72 100644 --- a/x11rb/src/image.rs +++ b/x11rb/src/image.rs @@ -247,7 +247,6 @@ fn compute_stride(width: u16, bits_per_pixel: BitsPerPixel, scanline_pad: Scanli #[cfg(test)] mod test_stride { use super::compute_stride; - use std::convert::TryInto; #[test] fn test_stride() { @@ -369,7 +368,6 @@ impl ScanlinePad { #[cfg(test)] mod test_scanline_pad { use super::ScanlinePad; - use std::convert::TryInto; #[test] fn number_conversions() { diff --git a/x11rb/src/properties.rs b/x11rb/src/properties.rs index eb5a1942..2e862a09 100644 --- a/x11rb/src/properties.rs +++ b/x11rb/src/properties.rs @@ -679,8 +679,6 @@ fn parse_with_flag( #[cfg(test)] mod test { - use std::convert::TryInto; - use super::{WmClass, WmHints, WmHintsState, WmSizeHints}; use crate::protocol::xproto::{Atom, AtomEnum, GetPropertyReply, Gravity}; use crate::x11_utils::Serialize; diff --git a/xtrace-example/src/connection.rs b/xtrace-example/src/connection.rs index 425d5a65..616a19de 100644 --- a/xtrace-example/src/connection.rs +++ b/xtrace-example/src/connection.rs @@ -1,6 +1,5 @@ use futures_io::{AsyncRead, AsyncWrite}; use std::cell::RefCell; -use std::convert::{TryFrom, TryInto}; use std::io::Result as IOResult; use std::sync::atomic::{AtomicBool, Ordering}; diff --git a/xtrace-example/src/connection_inner.rs b/xtrace-example/src/connection_inner.rs index 8b40fa79..db97a77e 100644 --- a/xtrace-example/src/connection_inner.rs +++ b/xtrace-example/src/connection_inner.rs @@ -6,7 +6,6 @@ use x11rb_protocol::x11_utils::{ }; use std::collections::VecDeque; -use std::convert::TryInto; /// Parse some data and print the resulting object. ///