Skip to content

Commit 53d7c1a

Browse files
committed
clippy
1 parent f295a46 commit 53d7c1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azalea-chat/src/component.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ impl simdnbt::FromNbtTag for FormattedText {
395395
simdnbt::borrow::NbtTag::List(list) => {
396396
let list = list.compounds()?;
397397
let mut component = FormattedText::from_nbt_tag(
398-
&simdnbt::borrow::NbtTag::Compound(list.get(0)?.clone()),
398+
&simdnbt::borrow::NbtTag::Compound(list.first()?.clone()),
399399
)?;
400400
for i in 1..list.len() {
401401
component.append(FormattedText::from_nbt_tag(

0 commit comments

Comments
 (0)