Skip to content

Commit

Permalink
Fix unused result warning
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed Aug 14, 2019
1 parent 229daa4 commit 3155856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mehlon-server/map_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ fn serialize_name_id_map(m :&NameIdMap) -> Vec<u8> {
// Version
r.write_u8(0).unwrap();
assert!(names.len() < u16::max_value() as usize);
r.write_u16::<BigEndian>(names.len() as u16);
r.write_u16::<BigEndian>(names.len() as u16).unwrap();
for n in names {
assert!(n.len() < u8::max_value() as usize);
r.write_u8(n.len() as u8).unwrap();
Expand Down

0 comments on commit 3155856

Please sign in to comment.