diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2023-02-15 19:31:55 +0100 |
---|---|---|
committer | Jeff Vander Stoep <jeffv@google.com> | 2023-02-15 19:31:55 +0100 |
commit | 07286a835f57d6d4f55e79ecbc62fcaa12d54e50 (patch) | |
tree | 3efb3fc7a75820446adc84e3eed6a22c9a300322 /src/buf/buf_impl.rs | |
parent | 5309249612fab0f62ebb1ec133ac7ba796d8b5e3 (diff) | |
download | bytes-07286a835f57d6d4f55e79ecbc62fcaa12d54e50.tar.gz |
Upgrade bytes to 1.4.0
This project was upgraded with external_updater.
Usage: tools/external_updater/updater.sh update rust/crates/bytes
For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md
Test: TreeHugger
Change-Id: I3c895d5bfc3a552a69de22f9d904adbd00e4aeee
Diffstat (limited to 'src/buf/buf_impl.rs')
-rw-r--r-- | src/buf/buf_impl.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buf/buf_impl.rs b/src/buf/buf_impl.rs index d903d5c..366cfc9 100644 --- a/src/buf/buf_impl.rs +++ b/src/buf/buf_impl.rs @@ -160,6 +160,7 @@ pub trait Buf { /// /// [`writev`]: http://man7.org/linux/man-pages/man2/readv.2.html #[cfg(feature = "std")] + #[cfg_attr(docsrs, doc(cfg(feature = "std")))] fn chunks_vectored<'a>(&'a self, dst: &mut [IoSlice<'a>]) -> usize { if dst.is_empty() { return 0; @@ -1183,6 +1184,7 @@ pub trait Buf { /// assert_eq!(&dst[..11], &b"hello world"[..]); /// ``` #[cfg(feature = "std")] + #[cfg_attr(docsrs, doc(cfg(feature = "std")))] fn reader(self) -> Reader<Self> where Self: Sized, |