Fix UdpFramed doc cfg_attr (#2010)

This commit is contained in:
Artem Vorotnikov
2019-12-21 12:04:30 -05:00
committed by Lucio Franco
parent de5ec6e1bc
commit b1266a48c4
+1 -1
View File
@@ -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,