mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-23 05:07:27 +00:00
pacify the merciless cargo fmt
This commit is contained in:
parent
a675810edf
commit
f8b1620ca7
1 changed files with 11 additions and 17 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue