clippy complaint

This commit is contained in:
jake 2023-11-19 00:17:20 -07:00
parent 240ddc7e84
commit 05d505836c

View File

@ -489,7 +489,7 @@ impl ShipList {
pub fn new(ships: Vec<ShipListEntry>) -> 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"),