From 12b224926475af6b43132dac017c677d06c8c8bc Mon Sep 17 00:00:00 2001 From: Ritchie Vink Date: Sun, 13 Feb 2022 16:06:32 +0100 Subject: [PATCH] inline push --- src/array/utf8/mutable.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/array/utf8/mutable.rs b/src/array/utf8/mutable.rs index cc8b170855e..b81d47c1cdc 100644 --- a/src/array/utf8/mutable.rs +++ b/src/array/utf8/mutable.rs @@ -159,6 +159,7 @@ impl MutableUtf8Array { /// Pushes a new element to the array. /// # Panic /// This operation panics iff the length of all values (in bytes) exceeds `O` maximum value. + #[inline] pub fn push>(&mut self, value: Option) { self.try_push(value).unwrap() } @@ -251,6 +252,7 @@ impl MutableArray for MutableUtf8Array { self } + #[inline] fn push_null(&mut self) { self.push::<&str>(None) } @@ -464,6 +466,7 @@ impl> TryExtend> for MutableUtf8Array { } impl> TryPush> for MutableUtf8Array { + #[inline] fn try_push(&mut self, value: Option) -> Result<()> { match value { Some(value) => {