Fix clippy warnings

This commit is contained in:
Micha Reiser 2024-08-05 18:41:53 +02:00
parent 9964c8e834
commit 9fe39364e1
No known key found for this signature in database

View file

@ -167,7 +167,7 @@ impl Zalsa {
}
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**
@ -176,7 +176,7 @@ impl Zalsa {
index: IngredientIndex,
) -> (&mut dyn Ingredient, &mut Runtime) {
(
&mut **(&mut self.ingredients_vec[index.as_usize()]),
&mut *self.ingredients_vec[index.as_usize()],
&mut self.runtime,
)
}