From 18173dc5f092f39797e3c8fc986b2766942b4f86 Mon Sep 17 00:00:00 2001 From: Kevin Ness Date: Wed, 24 Jul 2024 20:19:59 -0400 Subject: [PATCH] Add capacity to vec based on feedback --- src/components/calendar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/calendar.rs b/src/components/calendar.rs index abb94452..4d6b9b32 100644 --- a/src/components/calendar.rs +++ b/src/components/calendar.rs @@ -638,7 +638,7 @@ impl Calendar { &self, keys: &[TemporalFieldKey], ) -> TemporalResult> { - let mut ignored_keys = Vec::default(); + let mut ignored_keys = Vec::with_capacity(5); if self.is_iso() { // NOTE: It is okay for ignored keys to have duplicates? for key in keys {