Skip to content

Commit 05f2b41

Browse files
gdk: Drop::read_async shouldn't require Send callback
similar to gdk::Clipboard's API
1 parent fe14d4f commit 05f2b41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gdk4/src/drop.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl Drop {
1313
#[doc(alias = "gdk_drop_read_async")]
1414
pub fn read_async<
1515
P: IsA<gio::Cancellable>,
16-
Q: FnOnce(Result<(gio::InputStream, GString), glib::Error>) + Send + 'static,
16+
Q: FnOnce(Result<(gio::InputStream, GString), glib::Error>) + 'static,
1717
>(
1818
&self,
1919
mime_types: &[&str],
@@ -23,7 +23,7 @@ impl Drop {
2323
) {
2424
let user_data: Box<Q> = Box::new(callback);
2525
unsafe extern "C" fn read_async_trampoline<
26-
Q: FnOnce(Result<(gio::InputStream, GString), glib::Error>) + Send + 'static,
26+
Q: FnOnce(Result<(gio::InputStream, GString), glib::Error>) + 'static,
2727
>(
2828
_source_object: *mut glib::gobject_ffi::GObject,
2929
res: *mut gio::ffi::GAsyncResult,

0 commit comments

Comments
 (0)