mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-23 05:07:27 +00:00
Fix clippy warnings
This commit is contained in:
parent
9964c8e834
commit
9fe39364e1
1 changed files with 2 additions and 2 deletions
|
@ -167,7 +167,7 @@ impl Zalsa {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn lookup_ingredient(&self, index: IngredientIndex) -> &dyn Ingredient {
|
pub(crate) fn lookup_ingredient(&self, index: IngredientIndex) -> &dyn Ingredient {
|
||||||
&**(&self.ingredients_vec[index.as_usize()])
|
&*self.ingredients_vec[index.as_usize()]
|
||||||
}
|
}
|
||||||
|
|
||||||
/// **NOT SEMVER STABLE**
|
/// **NOT SEMVER STABLE**
|
||||||
|
@ -176,7 +176,7 @@ impl Zalsa {
|
||||||
index: IngredientIndex,
|
index: IngredientIndex,
|
||||||
) -> (&mut dyn Ingredient, &mut Runtime) {
|
) -> (&mut dyn Ingredient, &mut Runtime) {
|
||||||
(
|
(
|
||||||
&mut **(&mut self.ingredients_vec[index.as_usize()]),
|
&mut *self.ingredients_vec[index.as_usize()],
|
||||||
&mut self.runtime,
|
&mut self.runtime,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue