Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Nov 12, 2024
1 parent 6f18719 commit d099035
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions turbopack/crates/turbo-tasks-backend/src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ impl Default for BackendOptions {

pub struct TurboTasksBackend<B: BackingStorage>(Arc<TurboTasksBackendInner<B>>);

type TaskCacheLog = Sharded<ChunkedVec<(Arc<CachedTaskType>, TaskId)>>;
type StorageLog = Sharded<ChunkedVec<CachedDataUpdate>>;

struct TurboTasksBackendInner<B: BackingStorage> {
options: BackendOptions,

Expand All @@ -141,12 +144,12 @@ struct TurboTasksBackendInner<B: BackingStorage> {
persisted_task_id_factory: IdFactoryWithReuse<TaskId>,
transient_task_id_factory: IdFactoryWithReuse<TaskId>,

persisted_task_cache_log: Option<Sharded<ChunkedVec<(Arc<CachedTaskType>, TaskId)>>>,
persisted_task_cache_log: Option<TaskCacheLog>,
task_cache: BiMap<Arc<CachedTaskType>, TaskId>,
transient_tasks: DashMap<TaskId, Arc<TransientTask>, BuildHasherDefault<FxHasher>>,

persisted_storage_data_log: Option<Sharded<ChunkedVec<CachedDataUpdate>>>,
persisted_storage_meta_log: Option<Sharded<ChunkedVec<CachedDataUpdate>>>,
persisted_storage_data_log: Option<StorageLog>,
persisted_storage_meta_log: Option<StorageLog>,
storage: Storage<TaskId, CachedDataItem>,

/// Number of executing operations + Highest bit is set when snapshot is
Expand Down

0 comments on commit d099035

Please sign in to comment.