Skip to content

Commit

Permalink
fix: Fix some clippy warnings (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
DataTriny authored Jan 26, 2025
1 parent 46ed99b commit 579b9c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platforms/unix/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub(crate) struct Executor<'a> {
phantom: PhantomData<&'a ()>,
}

impl<'a> Executor<'a> {
impl Executor<'_> {
/// Spawns a task onto the executor.
pub(crate) fn spawn<T: Send + 'static>(
&self,
Expand Down
2 changes: 1 addition & 1 deletion platforms/windows/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ impl PlatformNode {
}

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

Expand Down

0 comments on commit 579b9c1

Please sign in to comment.