Skip to content

Commit

Permalink
fix CompletionVc::unchanged
Browse files Browse the repository at this point in the history
typo COMPLETIONS -> COMPLETION
  • Loading branch information
sokra committed Dec 20, 2022
1 parent 76582e9 commit 85619bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/turbo-tasks/src/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ impl CompletionVc {
/// new invalidation.
pub fn unchanged() -> Self {
// This is the same code that CompletionVc::cell uses except that it
// in fact compares the cell (CompletionVc::cell opted-out of
// only updates the cell when it is empty (CompletionVc::cell opted-out of
// that via `#[turbo_tasks::value(cell = "new")]`)
let cell = turbo_tasks::macro_helpers::find_cell_by_type(*COMPLETIONS_VALUE_TYPE_ID);
cell.compare_and_update_shared(Completion);
let cell = turbo_tasks::macro_helpers::find_cell_by_type(*COMPLETION_VALUE_TYPE_ID);
cell.conditional_update_shared(|old| old.is_none().then_some(Completion));
let raw: RawVc = cell.into();
raw.into()
}
Expand Down

0 comments on commit 85619bf

Please sign in to comment.