mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Remove unecesssary lifetimes
This commit is contained in:
parent
fb7bdd8bf8
commit
25e20b5fa0
@ -645,9 +645,9 @@ impl ComponentRecipe {
|
||||
/// a component recipe. If it does, return a vec of inventory slots that
|
||||
/// contain the ingredients needed, whose positions correspond to particular
|
||||
/// recipe are missing.
|
||||
pub fn inventory_contains_additional_ingredients<'a>(
|
||||
pub fn inventory_contains_additional_ingredients(
|
||||
&self,
|
||||
inv: &'a Inventory,
|
||||
inv: &Inventory,
|
||||
) -> Result<Vec<(u32, InvSlotId)>, Vec<(&RecipeInput, u32)>> {
|
||||
inventory_contains_ingredients(
|
||||
self.additional_inputs
|
||||
|
@ -162,7 +162,7 @@ impl LocalizationGuard {
|
||||
///
|
||||
/// First lookup is done in the active language, second in
|
||||
/// the fallback (if present).
|
||||
pub fn get_opt<'a>(&'a self, key: &str) -> Option<&'a str> {
|
||||
pub fn get_opt(&self, key: &str) -> Option<&str> {
|
||||
self.active
|
||||
.get(key)
|
||||
.or_else(|| self.fallback.as_ref().and_then(|f| f.get(key)))
|
||||
|
Loading…
Reference in New Issue
Block a user