diff --git a/gio/src/file.rs b/gio/src/file.rs index 52ab7b94bd42..36551614867d 100644 --- a/gio/src/file.rs +++ b/gio/src/file.rs @@ -169,7 +169,7 @@ pub trait FileExtManual: IsA + Sized { #[doc(alias = "g_file_replace_contents_async")] fn replace_contents_async< B: AsRef<[u8]> + Send + 'static, - R: FnOnce(Result<(B, glib::GString), (B, glib::Error)>) + 'static, + R: FnOnce(Result<(B, Option), (B, glib::Error)>) + 'static, C: IsA, >( &self, @@ -203,7 +203,7 @@ pub trait FileExtManual: IsA + Sized { }; unsafe extern "C" fn replace_contents_async_trampoline< B: AsRef<[u8]> + Send + 'static, - R: FnOnce(Result<(B, glib::GString), (B, glib::Error)>) + 'static, + R: FnOnce(Result<(B, Option), (B, glib::Error)>) + 'static, >( _source_object: *mut glib::gobject_ffi::GObject, res: *mut ffi::GAsyncResult, @@ -253,7 +253,7 @@ pub trait FileExtManual: IsA + Sized { flags: FileCreateFlags, ) -> Pin< Box< - dyn std::future::Future> + dyn std::future::Future), (B, glib::Error)>> + 'static, >, > {