diff --git a/Cargo.toml b/Cargo.toml index db6028d..7c6151e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ rustix = "0.38.31" all = "deny" [workspace.package] -rust-version = "1.83.0" +rust-version = "1.87.0" [package] name = "xwayland-satellite" diff --git a/testwl/src/lib.rs b/testwl/src/lib.rs index 1d4e2c1..8ac45c5 100644 --- a/testwl/src/lib.rs +++ b/testwl/src/lib.rs @@ -1,6 +1,6 @@ use std::collections::{hash_map, HashMap, HashSet}; use std::io::Read; -use std::io::Write; +use std::io::{PipeWriter, Write}; use std::os::fd::{AsFd, BorrowedFd, OwnedFd}; use std::os::unix::net::UnixStream; use std::sync::{Arc, Mutex, OnceLock}; @@ -1134,7 +1134,7 @@ impl Dispatch> for State { .position(|data| data.mime_type == mime_type) .unwrap_or_else(|| panic!("Invalid mime type: {mime_type}")); - let mut stream = UnixStream::from(fd); + let mut stream = PipeWriter::from(fd); stream.write_all(&data[pos].data).unwrap(); } Request::Destroy => {} @@ -1219,7 +1219,7 @@ impl Dispatch> for State { .position(|data| data.mime_type == mime_type) .unwrap_or_else(|| panic!("Invalid mime type: {mime_type}")); - let mut stream = UnixStream::from(fd); + let mut stream = PipeWriter::from(fd); stream.write_all(&data[pos].data).unwrap(); } wl_data_offer::Request::Destroy => {}