pacify the merciless cargo fmt

This commit is contained in:
Niko Matsakis 2024-07-28 10:01:35 +00:00
parent a675810edf
commit f8b1620ca7

View file

@ -41,10 +41,7 @@ pub trait Zalsa {
fn lookup_ingredient(&self, index: IngredientIndex) -> &dyn Ingredient; fn lookup_ingredient(&self, index: IngredientIndex) -> &dyn Ingredient;
/// Gets an `&mut`-ref to an ingredient by index. /// Gets an `&mut`-ref to an ingredient by index.
fn lookup_ingredient_mut( fn lookup_ingredient_mut(&mut self, index: IngredientIndex) -> &mut dyn Ingredient;
&mut self,
index: IngredientIndex,
) -> &mut dyn Ingredient;
fn runtimex(&self) -> &Runtime; fn runtimex(&self) -> &Runtime;
@ -115,10 +112,7 @@ impl<U: UserData> Zalsa for ZalsaImpl<U> {
&**self.ingredients_vec.get(index.as_usize()).unwrap() &**self.ingredients_vec.get(index.as_usize()).unwrap()
} }
fn lookup_ingredient_mut( fn lookup_ingredient_mut(&mut self, index: IngredientIndex) -> &mut dyn Ingredient {
&mut self,
index: IngredientIndex,
) -> &mut dyn Ingredient {
&mut **self.ingredients_vec.get_mut(index.as_usize()).unwrap() &mut **self.ingredients_vec.get_mut(index.as_usize()).unwrap()
} }