Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
khvzak committed Jun 3, 2024
1 parent 3d13c0a commit 4e5fea9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions casper-server/src/lua/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ impl UserData for CompiledFunction {
}
}

fn compile<'lua>(
lua: &'lua Lua,
fn compile(
lua: &Lua,
(chunk, name): (String, Option<String>),
) -> Result<StdResult<CompiledFunction, String>> {
let env = lua.create_table()?;
Expand Down
2 changes: 1 addition & 1 deletion casper-server/src/lua/yaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 4e5fea9

Please sign in to comment.