We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
map_or
is_none_or
1 parent fa95f55 commit 218ed47Copy full SHA for 218ed47
gio/src/gio_future.rs
@@ -115,7 +115,7 @@ where
115
&& self
116
.receiver
117
.as_ref()
118
- .map_or(true, |receiver| receiver.is_terminated())
+ .is_none_or(|receiver| receiver.is_terminated())
119
}
120
121
glib/src/source_futures.rs
@@ -101,7 +101,7 @@ where
101
102
.source
103
104
- .map_or(true, |(_, receiver)| receiver.is_terminated())
+ .is_none_or(|(_, receiver)| receiver.is_terminated())
105
106
107
@@ -313,7 +313,7 @@ where
313
314
315
316
317
318
319
0 commit comments