Skip to content

Commit 52e1700

Browse files
committed
docs(body): hide private __hyper_full_data method from docs
1 parent 898e919 commit 52e1700

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/body.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ impl<E: Payload> Payload for Box<E> {
114114
fn content_length(&self) -> Option<u64> {
115115
(**self).content_length()
116116
}
117+
118+
#[doc(hidden)]
119+
fn __hyper_full_data(&mut self, arg: FullDataArg) -> FullDataRet<Self::Data> {
120+
(**self).__hyper_full_data(arg)
121+
}
117122
}
118123

119124

@@ -358,6 +363,7 @@ impl Payload for Body {
358363
}
359364

360365
// We can improve the performance of `Body` when we know it is a Once kind.
366+
#[doc(hidden)]
361367
fn __hyper_full_data(&mut self, _: FullDataArg) -> FullDataRet<Self::Data> {
362368
match self.kind {
363369
Kind::Once(ref mut val) => FullDataRet(val.take()),

0 commit comments

Comments
 (0)