Browse Source

clippy complaint

cleanuppery
jake 1 year ago
parent
commit
05d505836c
  1. 2
      src/packet/login.rs

2
src/packet/login.rs

@ -489,7 +489,7 @@ impl ShipList {
pub fn new(ships: Vec<ShipListEntry>) -> ShipList { pub fn new(ships: Vec<ShipListEntry>) -> ShipList {
ShipList { ShipList {
baseship: ShipListEntry { 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, item: 0,
flags: 0, flags: 0,
name: utf8_to_utf16_array("Ship"), name: utf8_to_utf16_array("Ship"),

Loading…
Cancel
Save