diff --git a/src/events.rs b/src/events.rs index 46c86e0..afb2f57 100644 --- a/src/events.rs +++ b/src/events.rs @@ -46,7 +46,7 @@ pub async fn handle_event(client: Client, event: Event, state: State) -> Result< .call::((options.clone(), content.clone())) .ok() .as_deref() - .and_then(|s| trim_header(s).ok()) + .and_then(|string| trim_header(string).ok()) { is_encrypted = true; ncr_options = Some(options); diff --git a/src/lua/client/container.rs b/src/lua/client/container.rs index 6f3834b..1106eca 100644 --- a/src/lua/client/container.rs +++ b/src/lua/client/container.rs @@ -22,9 +22,10 @@ pub fn held_slot(_lua: &Lua, client: &Client) -> Result { #[allow(clippy::too_many_lines)] pub fn menu(lua: &Lua, client: &Client) -> Result { - fn from_slot_list(s: SlotList) -> Vec { - s.iter() - .map(|i| ItemStack(i.to_owned())) + fn from_slot_list(slot_list: SlotList) -> Vec { + slot_list + .iter() + .map(|item_stack| ItemStack(item_stack.to_owned())) .collect::>() } diff --git a/src/lua/client/world/mod.rs b/src/lua/client/world/mod.rs index 8b8d95a..905351a 100644 --- a/src/lua/client/world/mod.rs +++ b/src/lua/client/world/mod.rs @@ -28,7 +28,7 @@ pub fn get_block_state(_lua: &Lua, client: &Client, position: Vec3) -> Result Result> {