Skip to content

Commit

Permalink
Merge some related import blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Apr 25, 2024
1 parent 3fb6622 commit adafde1
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 27 deletions.
6 changes: 4 additions & 2 deletions wayland-backend/src/client_api.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
use std::{
any::Any,
fmt,
os::unix::io::{BorrowedFd, OwnedFd},
os::unix::{io::RawFd, net::UnixStream},
os::unix::{
io::{BorrowedFd, OwnedFd, RawFd},
net::UnixStream,
},
sync::Arc,
};

Expand Down
2 changes: 1 addition & 1 deletion wayland-backend/src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use std::{
fmt::Display,
os::unix::prelude::AsRawFd,
os::unix::io::AsRawFd,
time::{SystemTime, UNIX_EPOCH},
};

Expand Down
2 changes: 1 addition & 1 deletion wayland-backend/src/protocol.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Types and utilities for manipulating the Wayland protocol

use std::{ffi::CString, os::unix::prelude::AsRawFd};
use std::{ffi::CString, os::unix::io::AsRawFd};

pub use wayland_sys::common::{wl_argument, wl_interface, wl_message};

Expand Down
3 changes: 1 addition & 2 deletions wayland-backend/src/rs/client_impl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

use std::{
fmt,
os::unix::io::{BorrowedFd, OwnedFd},
os::unix::{
io::{AsRawFd, RawFd},
io::{AsRawFd, BorrowedFd, OwnedFd, RawFd},
net::UnixStream,
},
sync::{Arc, Condvar, Mutex, MutexGuard, Weak},
Expand Down
6 changes: 4 additions & 2 deletions wayland-backend/src/rs/server_impl/client.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
use std::{
ffi::CString,
os::unix::io::{AsFd, BorrowedFd, OwnedFd},
os::unix::{io::RawFd, net::UnixStream},
os::unix::{
io::{AsFd, BorrowedFd, OwnedFd, RawFd},
net::UnixStream,
},
sync::Arc,
};

Expand Down
3 changes: 1 addition & 2 deletions wayland-backend/src/rs/server_impl/common_poll.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::{
os::unix::io::AsRawFd,
os::unix::io::{BorrowedFd, OwnedFd},
os::unix::io::{AsRawFd, BorrowedFd, OwnedFd},
sync::{Arc, Mutex},
};

Expand Down
6 changes: 4 additions & 2 deletions wayland-backend/src/rs/server_impl/handle.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
use std::{
ffi::CString,
os::unix::io::OwnedFd,
os::unix::{io::RawFd, net::UnixStream},
os::unix::{
io::{OwnedFd, RawFd},
net::UnixStream,
},
sync::{Arc, Mutex, Weak},
};

Expand Down
3 changes: 1 addition & 2 deletions wayland-backend/src/rs/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,7 @@ mod tests {
use crate::protocol::{AllowNull, Argument, ArgumentType, Message};

use std::ffi::CString;
use std::os::unix::io::BorrowedFd;
use std::os::unix::prelude::IntoRawFd;
use std::os::unix::io::IntoRawFd;

use smallvec::smallvec;

Expand Down
3 changes: 1 addition & 2 deletions wayland-backend/src/rs/wire.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

use std::collections::VecDeque;
use std::ffi::CStr;
use std::os::unix::io::RawFd;
use std::os::unix::io::{BorrowedFd, OwnedFd};
use std::os::unix::io::{BorrowedFd, OwnedFd, RawFd};

use crate::protocol::{Argument, ArgumentType, Message};

Expand Down
6 changes: 4 additions & 2 deletions wayland-backend/src/server_api.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
use std::{
ffi::CString,
fmt,
os::unix::io::{BorrowedFd, OwnedFd},
os::unix::{io::RawFd, net::UnixStream},
os::unix::{
io::{BorrowedFd, OwnedFd, RawFd},
net::UnixStream,
},
sync::Arc,
};

Expand Down
3 changes: 1 addition & 2 deletions wayland-backend/src/sys/client_impl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ use std::{
collections::HashSet,
ffi::CStr,
os::raw::{c_int, c_void},
os::unix::io::{BorrowedFd, OwnedFd},
os::unix::{
io::{FromRawFd, IntoRawFd, RawFd},
io::{BorrowedFd, FromRawFd, IntoRawFd, OwnedFd, RawFd},
net::UnixStream,
},
sync::{
Expand Down
3 changes: 1 addition & 2 deletions wayland-backend/src/sys/server_impl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
use std::{
ffi::{CStr, CString},
os::raw::{c_int, c_void},
os::unix::io::{BorrowedFd, OwnedFd},
os::unix::{
io::{FromRawFd, IntoRawFd, RawFd},
io::{BorrowedFd, FromRawFd, IntoRawFd, OwnedFd, RawFd},
net::UnixStream,
},
sync::{
Expand Down
2 changes: 1 addition & 1 deletion wayland-client/examples/simple_window.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{fs::File, os::unix::prelude::AsFd};
use std::{fs::File, os::unix::io::AsFd};

use wayland_client::{
delegate_noop,
Expand Down
5 changes: 1 addition & 4 deletions wayland-server/src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ use std::{
io,
os::unix::{
fs::OpenOptionsExt,
io::{AsFd, BorrowedFd},
},
os::unix::{
io::{AsRawFd, RawFd},
io::{AsFd, AsRawFd, BorrowedFd, RawFd},
net::{UnixListener, UnixStream},
prelude::MetadataExt,
},
Expand Down

0 comments on commit adafde1

Please sign in to comment.