Skip to content

Commit

Permalink
Fix cargo doc warning (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Jun 14, 2023
1 parent 22da938 commit 3ef7c1a
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion h3-quinn/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub struct Connection {
}

impl Connection {
/// Create a [`Connection`] from a [`quinn::NewConnection`]
/// Create a [`Connection`] from a [`quinn::Connection`]
pub fn new(conn: quinn::Connection) -> Self {
Self {
conn: conn.clone(),
Expand Down
4 changes: 2 additions & 2 deletions h3-webtransport/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! Provides the client and server support for WebTransport sessions.
//!
//! # Relevant Links
//! WebTransport: https://www.w3.org/TR/webtransport/#biblio-web-transport-http3
//! WebTransport over HTTP/3: https://datatracker.ietf.org/doc/html/draft-ietf-webtrans-http3/
//! WebTransport: <https://www.w3.org/TR/webtransport/#biblio-web-transport-http3>
//! WebTransport over HTTP/3: <https://datatracker.ietf.org/doc/html/draft-ietf-webtrans-http3/>
#![deny(missing_docs)]

/// Server side WebTransport session support
Expand Down
2 changes: 1 addition & 1 deletion h3-webtransport/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use crate::stream::{BidiStream, RecvStream, SendStream};
///
/// Maintains the session using the underlying HTTP/3 connection.
///
/// Similar to [`crate::Connection`] it is generic over the QUIC implementation and Buffer.
/// Similar to [`h3::server::Connection`](https://docs.rs/h3/latest/h3/server/struct.Connection.html) it is generic over the QUIC implementation and Buffer.
pub struct WebTransportSession<C, B>
where
C: quic::Connection<B>,
Expand Down
2 changes: 1 addition & 1 deletion h3/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ where
///
/// This is opposed to discarding them by returning in `poll_accept_recv`, which may cause them to be missed by something else polling.
///
/// See: https://datatracker.ietf.org/doc/html/draft-ietf-webtrans-http3/#section-4.5
/// See: <https://datatracker.ietf.org/doc/html/draft-ietf-webtrans-http3/#section-4.5>
///
/// In WebTransport over HTTP/3, the client MAY send its SETTINGS frame, as well as
/// multiple WebTransport CONNECT requests, WebTransport data streams and WebTransport
Expand Down
2 changes: 1 addition & 1 deletion h3/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ macro_rules! codes {

codes! {
/// Datagram or capsule parse error
/// See: https://www.rfc-editor.org/rfc/rfc9297#section-5.2
/// See: <https://www.rfc-editor.org/rfc/rfc9297#section-5.2>
(0x33, H3_DATAGRAM_ERROR);
/// No error. This is used when the connection or stream needs to be
/// closed, but there is no error to signal.
Expand Down
4 changes: 2 additions & 2 deletions h3/src/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::{

/// Describes the `:protocol` pseudo-header for extended connect
///
/// See: [https://www.rfc-editor.org/rfc/rfc8441#section-4]
/// See: <https://www.rfc-editor.org/rfc/rfc8441#section-4>
#[derive(Copy, PartialEq, Debug, Clone)]
pub struct Protocol(ProtocolInner);

Expand Down Expand Up @@ -42,7 +42,7 @@ impl FromStr for Protocol {
}

/// HTTP datagram frames
/// See: https://www.rfc-editor.org/rfc/rfc9297#section-2.1
/// See: <https://www.rfc-editor.org/rfc/rfc9297#section-2.1>
pub struct Datagram<B = Bytes> {
/// Stream id divided by 4
stream_id: StreamId,
Expand Down
2 changes: 1 addition & 1 deletion h3/src/proto/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl From<usize> for PayloadLen {
impl Frame<PayloadLen> {
pub const MAX_ENCODED_SIZE: usize = VarInt::MAX_SIZE * 7;

/// Decodes a Frame from the stream according to https://www.rfc-editor.org/rfc/rfc9114#section-7.1
/// Decodes a Frame from the stream according to <https://www.rfc-editor.org/rfc/rfc9114#section-7.1>
pub fn decode<T: Buf>(buf: &mut T) -> Result<Self, FrameError> {
let remaining = buf.remaining();
let ty = FrameType::decode(buf).map_err(|_| FrameError::Incomplete(remaining + 1))?;
Expand Down
4 changes: 2 additions & 2 deletions h3/src/quic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub trait Connection<B: Buf> {

/// Extends the `Connection` trait for sending datagrams
///
/// See: https://www.rfc-editor.org/rfc/rfc9297
/// See: <https://www.rfc-editor.org/rfc/rfc9297>
pub trait SendDatagramExt<B: Buf> {
/// The error type that can occur when sending a datagram
type Error: Into<Box<dyn Error>>;
Expand All @@ -96,7 +96,7 @@ pub trait SendDatagramExt<B: Buf> {

/// Extends the `Connection` trait for receiving datagrams
///
/// See: https://www.rfc-editor.org/rfc/rfc9297
/// See: <https://www.rfc-editor.org/rfc/rfc9297>
pub trait RecvDatagramExt {
/// The type of `Buf` for *raw* datagrams (without the stream_id decoded)
type Buf: Buf;
Expand Down
2 changes: 1 addition & 1 deletion h3/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ impl Builder {

/// Indicates that the client or server supports HTTP/3 datagrams
///
/// See: https://www.rfc-editor.org/rfc/rfc9297#section-2.1.1
/// See: <https://www.rfc-editor.org/rfc/rfc9297#section-2.1.1>
pub fn enable_datagram(&mut self, value: bool) -> &mut Self {
self.config.enable_datagram = value;
self
Expand Down

0 comments on commit 3ef7c1a

Please sign in to comment.