diff options
Diffstat (limited to 'azalea-nbt/src/encode.rs')
| -rw-r--r-- | azalea-nbt/src/encode.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-nbt/src/encode.rs b/azalea-nbt/src/encode.rs index d787e15f..2347bbf3 100644 --- a/azalea-nbt/src/encode.rs +++ b/azalea-nbt/src/encode.rs @@ -42,7 +42,7 @@ impl Tag { } Tag::List(value) => { // we just get the type from the first item, or default the type to END - let type_id = value.first().and_then(|f| Some(f.id())).unwrap_or(0); + let type_id = value.first().map(|f| f.id()).unwrap_or(0); writer.write_u8(type_id).map_err(|_| Error::WriteError)?; writer .write_i32::<BE>(value.len() as i32) |
