diff --git a/CHANGELOG.md b/CHANGELOG.md index c4e6b8a11..31bd80153 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - `xkeysym::Keysym` is used as a keyboard key representation instead of `u32` - `wayland-rs` dependencies are updated to 0.31 - `calloop` dependency updated to 0.12.1 +- Take `OwnedFd` instead of `RawFd` as argument to `receive_to_fd` functions. #### Fixed diff --git a/src/data_device_manager/data_offer.rs b/src/data_device_manager/data_offer.rs index 7a3ef4f26..9b42c0c12 100644 --- a/src/data_device_manager/data_offer.rs +++ b/src/data_device_manager/data_offer.rs @@ -1,6 +1,6 @@ use std::{ ops::{Deref, DerefMut}, - os::unix::prelude::{BorrowedFd, FromRawFd, RawFd}, + os::unix::prelude::{AsFd, BorrowedFd, FromRawFd, IntoRawFd, OwnedFd}, sync::{Arc, Mutex}, }; @@ -427,16 +427,14 @@ pub fn receive(offer: &WlDataOffer, mime_type: String) -> std::io::Result