Skip to content

Commit 8f62fa3

Browse files
committed
make growable add inline
1 parent df66985 commit 8f62fa3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opentelemetry-sdk/src/logs/growable_array.rs

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ impl<
4444
}
4545

4646
/// Pushes a value into the `GrowableArray`.
47+
#[inline]
4748
pub(crate) fn push(&mut self, value: T) {
4849
if self.count < MAX_STACK_CAPACITY {
4950
self.initial[self.count] = value;
@@ -74,6 +75,7 @@ impl<
7475
}
7576

7677
/// Returns an iterator over the elements in the `GrowableArray`.
78+
#[inline]
7779
pub(crate) fn iter(&self) -> GrowableArrayIter<'_, T, MAX_STACK_CAPACITY> {
7880
if self.additional.is_none() || self.additional.as_ref().unwrap().is_empty() {
7981
GrowableArrayIter::StackOnly {

0 commit comments

Comments
 (0)