Skip to content

Commit 1da2206

Browse files
committed
review: Inline attribute to body passthrough
continuing this theme of inlining, we inline the passthrough methods on `Body` as well. Signed-off-by: katelyn martin <[email protected]>
1 parent b4e2f82 commit 1da2206

File tree

1 file changed

+3
-0
lines changed
  • linkerd/http/prom/src/body_data

1 file changed

+3
-0
lines changed

linkerd/http/prom/src/body_data/body.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,20 @@ where
6363
Poll::Ready(data)
6464
}
6565

66+
#[inline]
6667
fn poll_trailers(
6768
self: Pin<&mut Self>,
6869
cx: &mut Context<'_>,
6970
) -> Poll<Result<Option<HeaderMap>, Self::Error>> {
7071
self.project().inner.poll_trailers(cx)
7172
}
7273

74+
#[inline]
7375
fn is_end_stream(&self) -> bool {
7476
self.inner.is_end_stream()
7577
}
7678

79+
#[inline]
7780
fn size_hint(&self) -> SizeHint {
7881
self.inner.size_hint()
7982
}

0 commit comments

Comments
 (0)