Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Oct 10, 2023
1 parent 37bcc7a commit af58aef
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,12 @@ impl<'a, const C: usize> Executor<'a, C> {
}
}

impl<'a, const C: usize> Default for Executor<'a, C> {
fn default() -> Self {
Self::new()
}
}

unsafe impl<'a, const C: usize> Send for Executor<'a, C> {}
unsafe impl<'a, const C: usize> Sync for Executor<'a, C> {}

Expand Down Expand Up @@ -403,3 +409,9 @@ impl<'a, const C: usize> LocalExecutor<'a, C> {
unsafe { self.executor.run_unchecked(fut) }.await
}
}

impl<'a, const C: usize> Default for LocalExecutor<'a, C> {
fn default() -> Self {
Self::new()
}
}

0 comments on commit af58aef

Please sign in to comment.