We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df66985 commit 8f62fa3Copy full SHA for 8f62fa3
opentelemetry-sdk/src/logs/growable_array.rs
@@ -44,6 +44,7 @@ impl<
44
}
45
46
/// Pushes a value into the `GrowableArray`.
47
+ #[inline]
48
pub(crate) fn push(&mut self, value: T) {
49
if self.count < MAX_STACK_CAPACITY {
50
self.initial[self.count] = value;
@@ -74,6 +75,7 @@ impl<
74
75
76
77
/// Returns an iterator over the elements in the `GrowableArray`.
78
79
pub(crate) fn iter(&self) -> GrowableArrayIter<'_, T, MAX_STACK_CAPACITY> {
80
if self.additional.is_none() || self.additional.as_ref().unwrap().is_empty() {
81
GrowableArrayIter::StackOnly {
0 commit comments