Skip to content

Commit

Permalink
Remove unnecessary imports in x11rb
Browse files Browse the repository at this point in the history
TryFrom, TryInto, and drop are all part of the prelude in Rust 2021.

Signed-off-by: Uli Schlachter <[email protected]>
  • Loading branch information
psychon committed Mar 17, 2024
1 parent c0055b0 commit f504223
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion x11rb/src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//! This module contains the `Connection` trait and related definitions. The code in this module is
//! used by each concrete implementation of the X11 protocol.
use std::convert::{TryFrom, TryInto};
use std::io::IoSlice;

use x11rb_protocol::x11_utils::{ReplyFDsRequest, ReplyRequest, VoidRequest};
Expand Down
1 change: 0 additions & 1 deletion x11rb/src/cursor/parse_cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Copyright © 2013 Michael Stapelberg
// and is covered by MIT/X Consortium License

use std::convert::TryInto;
use std::io::{Read, Seek, SeekFrom};

const FILE_MAGIC: u32 = 0x7275_6358;
Expand Down
1 change: 0 additions & 1 deletion x11rb/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
// begins with the second bit of each pixel etc.

use std::borrow::Cow;
use std::convert::{TryFrom, TryInto};

use crate::connection::Connection;
use crate::cookie::VoidCookie;
Expand Down
2 changes: 0 additions & 2 deletions x11rb/src/properties.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Utility functions for working with X11 properties
use std::convert::TryInto;

use crate::connection::RequestConnection;
use crate::cookie::{Cookie, VoidCookie};
use crate::errors::{ConnectionError, ParseError, ReplyError};
Expand Down
2 changes: 0 additions & 2 deletions x11rb/src/rust_connection/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
//! A pure-rust implementation of a connection to an X11 server.
use std::convert::TryInto;
use std::io::IoSlice;
use std::mem::drop;
use std::sync::{Condvar, Mutex, MutexGuard, TryLockError};
use std::time::Instant;

Expand Down
2 changes: 0 additions & 2 deletions x11rb/src/wrapper.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Some wrappers around the generated code to simplify use.
use std::convert::TryInto;

use super::cookie::VoidCookie;
use super::errors::{ConnectionError, ReplyError};
use super::protocol::xproto::{Atom, ConnectionExt as XProtoConnectionExt, PropMode, Window};
Expand Down
1 change: 0 additions & 1 deletion x11rb/src/xcb_ffi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//!
//! This module is only available when the `allow-unsafe-code` feature is enabled.
use std::convert::TryInto;
use std::ffi::CStr;
use std::io::{Error as IOError, ErrorKind, IoSlice};
use std::os::raw::c_int;
Expand Down

0 comments on commit f504223

Please sign in to comment.