Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
  • Loading branch information
alexkirsz and jridgewell committed Aug 17, 2023
1 parent f43bd1b commit 4ec13f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/turbo-tasks/src/generics/index_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn index_map_default() -> Vc<IndexMap<Vc<()>, Vc<()>>> {

impl<K, V> ValueDefault for IndexMap<Vc<K>, Vc<V>> {
fn value_default() -> Vc<Self> {
// Safety: `index_map_default` creates a None variant, which is a valid
// Safety: `index_map_default` creates an empty map, which is a valid
// representation of any index set of `Vc`.
unsafe { Vc::<Self>::from_repr(index_map_default()) }
}
Expand Down
2 changes: 1 addition & 1 deletion crates/turbo-tasks/src/generics/index_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn index_set_default() -> Vc<IndexSet<Vc<()>>> {

impl<T> ValueDefault for IndexSet<Vc<T>> {
fn value_default() -> Vc<Self> {
// Safety: `index_set_default` creates a None variant, which is a valid
// Safety: `index_set_default` creates an empty set, which is a valid
// representation of any index set of `Vc`.
unsafe { Vc::<Self>::from_repr(index_set_default()) }
}
Expand Down

0 comments on commit 4ec13f0

Please sign in to comment.