From 2e1c2d313e8a780f71e6619be2527a907298a3d7 Mon Sep 17 00:00:00 2001 From: Chrislearn Young Date: Sat, 12 Oct 2024 05:47:44 +0800 Subject: [PATCH] clippy --- crates/core/src/serde/flat_value.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core/src/serde/flat_value.rs b/crates/core/src/serde/flat_value.rs index 489c19340..032587d1b 100644 --- a/crates/core/src/serde/flat_value.rs +++ b/crates/core/src/serde/flat_value.rs @@ -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