diff --git a/casper-server/src/lua/vm.rs b/casper-server/src/lua/vm.rs index ee8e5e7..ded8fde 100644 --- a/casper-server/src/lua/vm.rs +++ b/casper-server/src/lua/vm.rs @@ -20,8 +20,8 @@ impl UserData for CompiledFunction { } } -fn compile<'lua>( - lua: &'lua Lua, +fn compile( + lua: &Lua, (chunk, name): (String, Option), ) -> Result> { let env = lua.create_table()?; diff --git a/casper-server/src/lua/yaml.rs b/casper-server/src/lua/yaml.rs index bf32436..20c6137 100644 --- a/casper-server/src/lua/yaml.rs +++ b/casper-server/src/lua/yaml.rs @@ -187,7 +187,7 @@ fn traverse_value<'a>( value: &'a serde_yaml::Value, keys: &[IndexKey], ) -> Option<&'a serde_yaml::Value> { - let next_value = match keys.get(0) { + let next_value = match keys.first() { Some(IndexKey::Index(i)) => value.get(i)?, Some(IndexKey::String(s)) => value.get(s)?, None => return Some(value),