From b1266a48c4daea9a14cd7a77bb8c8712ebf1c012 Mon Sep 17 00:00:00 2001 From: Artem Vorotnikov Date: Sat, 21 Dec 2019 20:04:30 +0300 Subject: [PATCH] Fix UdpFramed doc cfg_attr (#2010) --- tokio-util/src/udp/frame.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio-util/src/udp/frame.rs b/tokio-util/src/udp/frame.rs index 18ee106e5..c16e12f88 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 { socket: UdpSocket,