Skip to content

Commit

Permalink
Fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
swsnr committed Jan 1, 2024
1 parent efa7186 commit 42ce28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/journal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl FieldValue {
match self {
FieldValue::Text(v) => Cow::Borrowed(v.as_str()),
FieldValue::Binary(binary) => String::from_utf8_lossy(binary),
FieldValue::Array(v) => Cow::Borrowed(v.get(0).map_or("", |s| s.as_str())),
FieldValue::Array(v) => Cow::Borrowed(v.first().map_or("", |s| s.as_str())),
}
}
}
Expand Down

0 comments on commit 42ce28c

Please sign in to comment.