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.
1 parent 46ed99b commit 579b9c1Copy full SHA for 579b9c1
platforms/unix/src/executor.rs
@@ -41,7 +41,7 @@ pub(crate) struct Executor<'a> {
41
phantom: PhantomData<&'a ()>,
42
}
43
44
-impl<'a> Executor<'a> {
+impl Executor<'_> {
45
/// Spawns a task onto the executor.
46
pub(crate) fn spawn<T: Send + 'static>(
47
&self,
platforms/windows/src/node.rs
@@ -622,7 +622,7 @@ impl PlatformNode {
622
623
624
fn is_root(&self, state: &TreeState) -> bool {
625
- self.node_id.map_or(false, |id| id == state.root_id())
+ self.node_id.is_some_and(|id| id == state.root_id())
626
627
628
0 commit comments