@@ -10,7 +10,7 @@ use crate::accumulator::accumulated_map::{AccumulatedMap, InputAccumulatedValues
1010use crate :: cycle:: {
1111 empty_cycle_heads, CycleHeads , CycleRecoveryAction , CycleRecoveryStrategy , ProvisionalStatus ,
1212} ;
13- use crate :: database:: RawDatabasePointer ;
13+ use crate :: database:: RawDatabase ;
1414use crate :: function:: delete:: DeletedEntries ;
1515use crate :: function:: sync:: { ClaimResult , SyncTable } ;
1616use crate :: ingredient:: { Ingredient , WaitForResult } ;
@@ -130,7 +130,6 @@ pub struct IngredientImpl<C: Configuration> {
130130 ///
131131 /// The supplied database must be be the same as the database used to construct the [`Views`]
132132 /// instances that this downcaster was derived from.
133- /// instances that this downcaster was derived from.
134133 view_caster : OnceLock < DatabaseDownCaster < C :: DbView > > ,
135134
136135 sync_table : SyncTable ,
@@ -155,7 +154,6 @@ where
155154 C : Configuration ,
156155{
157156 pub fn new (
158- _zalsa : & Zalsa ,
159157 index : IngredientIndex ,
160158 memo_ingredient_indices : <C :: SalsaStruct < ' static > as SalsaStructInDb >:: MemoIngredientMap ,
161159 lru : usize ,
@@ -173,7 +171,10 @@ where
173171 /// Set the view-caster for this tracked function ingredient, if it has
174172 /// not already been initialized.
175173 #[ inline]
176- pub fn get_or_init ( & self , view_caster : impl FnOnce ( ) -> DatabaseDownCaster < C :: DbView > ) -> & Self {
174+ pub fn get_or_init (
175+ & self ,
176+ view_caster : impl FnOnce ( ) -> DatabaseDownCaster < C :: DbView > ,
177+ ) -> & Self {
177178 // Note that we must set this lazily as we don't have access to the database
178179 // type when ingredients are registered into the `Zalsa`.
179180 self . view_caster . get_or_init ( view_caster) ;
@@ -261,7 +262,7 @@ where
261262 unsafe fn maybe_changed_after (
262263 & self ,
263264 _zalsa : & crate :: zalsa:: Zalsa ,
264- db : RawDatabasePointer < ' _ > ,
265+ db : RawDatabase < ' _ > ,
265266 input : Id ,
266267 revision : Revision ,
267268 cycle_heads : & mut CycleHeads ,
@@ -372,7 +373,7 @@ where
372373
373374 unsafe fn accumulated < ' db > (
374375 & ' db self ,
375- db : RawDatabasePointer < ' db > ,
376+ db : RawDatabase < ' db > ,
376377 key_index : Id ,
377378 ) -> ( Option < & ' db AccumulatedMap > , InputAccumulatedValues ) {
378379 // SAFETY: The `db` belongs to the ingredient as per caller invariant
0 commit comments