Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Jul 26, 2024
1 parent 1faed5f commit 5422e84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/turbo-tasks/src/id_factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ impl<T> IdFactory<T> {

pub const fn new_with_range(start: u64, max: u64) -> Self {
Self {
next_id: AtomicU64::new(start as u64),
max_id: max as u64,
next_id: AtomicU64::new(start),
max_id: max,
_phantom_data: PhantomData,
}
}
Expand Down
6 changes: 6 additions & 0 deletions crates/turbo-tasks/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,13 @@ pub trait TurboTasksBackendApi<B: Backend + 'static>: TurboTasksCallApi + Sync +

fn get_fresh_persistent_task_id(&self) -> Unused<TaskId>;
fn get_fresh_transient_task_id(&self) -> Unused<TaskId>;
/// # Safety
///
/// The caller must ensure that the task id is not used anymore.
unsafe fn reuse_persistent_task_id(&self, id: Unused<TaskId>);
/// # Safety
///
/// The caller must ensure that the task id is not used anymore.
unsafe fn reuse_transient_task_id(&self, id: Unused<TaskId>);

fn schedule(&self, task: TaskId);
Expand Down

0 comments on commit 5422e84

Please sign in to comment.