File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ rustix = "0.38.31"
1212all = " deny"
1313
1414[workspace .package ]
15- rust-version = " 1.83 .0"
15+ rust-version = " 1.87 .0"
1616
1717[package ]
1818name = " xwayland-satellite"
Original file line number Diff line number Diff line change 11use std:: collections:: { hash_map, HashMap , HashSet } ;
22use std:: io:: Read ;
3- use std:: io:: Write ;
3+ use std:: io:: { PipeWriter , Write } ;
44use std:: os:: fd:: { AsFd , BorrowedFd , OwnedFd } ;
55use std:: os:: unix:: net:: UnixStream ;
66use std:: sync:: { Arc , Mutex , OnceLock } ;
@@ -1134,7 +1134,7 @@ impl Dispatch<ZwpPrimarySelectionOfferV1, Vec<PasteData>> for State {
11341134 . position ( |data| data. mime_type == mime_type)
11351135 . unwrap_or_else ( || panic ! ( "Invalid mime type: {mime_type}" ) ) ;
11361136
1137- let mut stream = UnixStream :: from ( fd) ;
1137+ let mut stream = PipeWriter :: from ( fd) ;
11381138 stream. write_all ( & data[ pos] . data ) . unwrap ( ) ;
11391139 }
11401140 Request :: Destroy => { }
@@ -1219,7 +1219,7 @@ impl Dispatch<WlDataOffer, Vec<PasteData>> for State {
12191219 . position ( |data| data. mime_type == mime_type)
12201220 . unwrap_or_else ( || panic ! ( "Invalid mime type: {mime_type}" ) ) ;
12211221
1222- let mut stream = UnixStream :: from ( fd) ;
1222+ let mut stream = PipeWriter :: from ( fd) ;
12231223 stream. write_all ( & data[ pos] . data ) . unwrap ( ) ;
12241224 }
12251225 wl_data_offer:: Request :: Destroy => { }
You can’t perform that action at this time.
0 commit comments