Skip to content

Commit 579b9c1

Browse files
authored
fix: Fix some clippy warnings (#509)
1 parent 46ed99b commit 579b9c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

platforms/unix/src/executor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub(crate) struct Executor<'a> {
4141
phantom: PhantomData<&'a ()>,
4242
}
4343

44-
impl<'a> Executor<'a> {
44+
impl Executor<'_> {
4545
/// Spawns a task onto the executor.
4646
pub(crate) fn spawn<T: Send + 'static>(
4747
&self,

platforms/windows/src/node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ impl PlatformNode {
622622
}
623623

624624
fn is_root(&self, state: &TreeState) -> bool {
625-
self.node_id.map_or(false, |id| id == state.root_id())
625+
self.node_id.is_some_and(|id| id == state.root_id())
626626
}
627627
}
628628

0 commit comments

Comments
 (0)