Skip to content

Commit

Permalink
[Turbopack] follow-up improvements from review
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Oct 10, 2024
1 parent 14648cb commit 126a4aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion turbopack/crates/turbo-tasks-backend/src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,7 @@ impl TurboTasksBackendInner {
collectible_type,
cell,
},
-(count as i32),
-(i32::try_from(count).unwrap()),
self.execute_context(turbo_tasks),
);
}
Expand Down
3 changes: 3 additions & 0 deletions turbopack/crates/turbo-tasks-backend/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,9 @@ impl CachedDataItemKey {
}
}

/// Used by the [`get_mut`][crate::backend::storage::get_mut] macro to restrict mutable access to a
/// subset of types. No mutable access should be allowed for persisted data, since that would break
/// persisting.
#[allow(non_upper_case_globals, dead_code)]
pub mod allow_mut_access {
pub const InProgress: () = ();
Expand Down

0 comments on commit 126a4aa

Please sign in to comment.