Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Oct 11, 2024
1 parent 1d7adcf commit 2e1c2d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/src/serde/flat_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl<'de> Deserializer<'de> for FlatValue<'de> {
{
let mut items = std::mem::take(&mut self.0);
let single_mode = if items.len() == 1 {
if let Some(item) = items.get(0) {
if let Some(item) = items.first() {
item.0.starts_with('[') && item.0.ends_with(']')
} else {
false
Expand Down

0 comments on commit 2e1c2d3

Please sign in to comment.