From 05d505836cfd2e38b8829700e1f31caed0da35cd Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 19 Nov 2023 00:17:20 -0700 Subject: [PATCH] clippy complaint --- src/packet/login.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packet/login.rs b/src/packet/login.rs index ff124f7..df4ced4 100644 --- a/src/packet/login.rs +++ b/src/packet/login.rs @@ -489,7 +489,7 @@ impl ShipList { pub fn new(ships: Vec) -> ShipList { ShipList { baseship: ShipListEntry { - menu: ships.get(0).map(|s| s.menu).unwrap_or(0), + menu: ships.first().map(|s| s.menu).unwrap_or(0), item: 0, flags: 0, name: utf8_to_utf16_array("Ship"),