Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev committed Nov 4, 2024
1 parent db71a89 commit c6077c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/function/specify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ where
//
// Now, if We invoke Q3 first, We get one result for Q2, but if We invoke Q4 first, We get a different value. That's no good.
let database_key_index = <C::Input<'db>>::database_key_index(db.as_dyn_database(), key);
let dependency_index = database_key_index;
if !zalsa_local.is_output_of_active_query(dependency_index) {
if !zalsa_local.is_output_of_active_query(database_key_index) {
panic!("can only use `specify` on salsa structs created during the current tracked fn");
}

Expand Down
4 changes: 2 additions & 2 deletions src/interned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ where
data: C::Data<'static>,
memos: MemoTable,
syncs: SyncTable,
// The revision the value was first interned in.
/// The revision the value was first interned in.
first_interned_at: Revision,
// The most recent interned revision.
/// The most recent interned revision.
last_interned_at: AtomicRevision,
}

Expand Down

0 comments on commit c6077c4

Please sign in to comment.