From dded624dc6a6347d7e937efee7779a44a51c4edb Mon Sep 17 00:00:00 2001 From: Ritchie Vink Date: Mon, 14 Feb 2022 23:07:36 +0100 Subject: [PATCH] inline push (#835) --- 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 19f2662f113..27bd94a3976 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) } @@ -480,6 +482,7 @@ impl> TryExtend> for MutableUtf8Array { } impl> TryPush> for MutableUtf8Array { + #[inline] fn try_push(&mut self, value: Option) -> Result<()> { match value { Some(value) => {