Skip to content

Commit 70f6433

Browse files
committed
gio: make Task::cancellable return Option
1 parent 49d9100 commit 70f6433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gio/src/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ macro_rules! task_impl {
107107

108108
#[doc(alias = "g_task_get_cancellable")]
109109
#[doc(alias = "get_cancellable")]
110-
pub fn cancellable(&self) -> Cancellable {
110+
pub fn cancellable(&self) -> Option<Cancellable> {
111111
unsafe { from_glib_none(ffi::g_task_get_cancellable(self.to_glib_none().0)) }
112112
}
113113

0 commit comments

Comments
 (0)