summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Vorotnikov <artem@vorotnikov.me>2019-12-21 20:04:30 +0300
committerLucio Franco <luciofranco14@gmail.com>2019-12-21 12:04:30 -0500
commitb1266a48c4daea9a14cd7a77bb8c8712ebf1c012 (patch)
treea47f4e8a2d6d7ecdb75628fe7e230c9dc2d9ea60
parentde5ec6e1bcbb428ee672d7965c0656e628adde46 (diff)
Fix UdpFramed doc cfg_attr (#2010)
-rw-r--r--tokio-util/src/udp/frame.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio-util/src/udp/frame.rs b/tokio-util/src/udp/frame.rs
index 18ee106e..c16e12f8 100644
--- a/tokio-util/src/udp/frame.rs
+++ b/tokio-util/src/udp/frame.rs
@@ -27,7 +27,7 @@ use std::task::{Context, Poll};
/// calling `split` on the `UdpFramed` returned by this method, which will break
/// them into separate objects, allowing them to interact more easily.
#[must_use = "sinks do nothing unless polled"]
-#[cfg_attr(docsrs, doc(feature = "codec-udp"))]
+#[cfg_attr(docsrs, doc(all(feature = "codec", feature = "udp")))]
#[derive(Debug)]
pub struct UdpFramed<C> {
socket: UdpSocket,