From 975469fb2b3d500c77a429ddd7588b453ff0c80e Mon Sep 17 00:00:00 2001 From: Ignacio Amigo Date: Thu, 19 Dec 2024 16:19:36 -0300 Subject: [PATCH] chore: Lints --- objects/src/accounts/package/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objects/src/accounts/package/mod.rs b/objects/src/accounts/package/mod.rs index 98aec03c1..1d7ea82da 100644 --- a/objects/src/accounts/package/mod.rs +++ b/objects/src/accounts/package/mod.rs @@ -127,7 +127,7 @@ impl ComponentMetadata { storage.iter().flat_map(|entry| entry.slot_indices().iter().copied()).collect(); all_slots.sort_unstable(); - if let Some(v) = all_slots.get(0) { + if let Some(v) = all_slots.first() { if *v != 0 { return Err(ComponentMetadataError::NonContiguousSlots); }