Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl<'a> Executor<'a> {
///
/// let ex = Executor::new();
/// ```
pub const fn new() -> Executor<'a> {
pub const fn new() -> Self {
Executor {
state: AtomicPtr::new(std::ptr::null_mut()),
_marker: PhantomData,
Expand Down Expand Up @@ -413,7 +413,7 @@ impl Drop for Executor<'_> {
}

impl<'a> Default for Executor<'a> {
fn default() -> Executor<'a> {
fn default() -> Self {
Executor::new()
}
}
Expand Down Expand Up @@ -461,7 +461,7 @@ impl<'a> LocalExecutor<'a> {
///
/// let local_ex = LocalExecutor::new();
/// ```
pub const fn new() -> LocalExecutor<'a> {
pub const fn new() -> Self {
LocalExecutor {
inner: Executor::new(),
_marker: PhantomData,
Expand Down Expand Up @@ -644,7 +644,7 @@ impl<'a> LocalExecutor<'a> {
}

impl<'a> Default for LocalExecutor<'a> {
fn default() -> LocalExecutor<'a> {
fn default() -> Self {
LocalExecutor::new()
}
}
Expand All @@ -669,7 +669,7 @@ struct State {

impl State {
/// Creates state for a new executor.
const fn new() -> State {
const fn new() -> Self {
State {
queue: ConcurrentQueue::unbounded(),
local_queues: RwLock::new(Vec::new()),
Expand Down