Skip to content

Commit

Permalink
Remove some more redundant imports
Browse files Browse the repository at this point in the history
Signed-off-by: Uli Schlachter <psychon@znc.in>
  • Loading branch information
psychon committed Apr 1, 2024
1 parent 61f365e commit 6551db1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions x11rb/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -369,7 +368,6 @@ impl ScanlinePad {
#[cfg(test)]
mod test_scanline_pad {
use super::ScanlinePad;
use std::convert::TryInto;

#[test]
fn number_conversions() {
Expand Down
2 changes: 0 additions & 2 deletions x11rb/src/properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,6 @@ fn parse_with_flag<T: TryParse>(

#[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;
Expand Down
1 change: 0 additions & 1 deletion xtrace-example/src/connection.rs
Original file line number Diff line number Diff line change
@@ -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};

Expand Down
1 change: 0 additions & 1 deletion xtrace-example/src/connection_inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit 6551db1

Please sign in to comment.