Skip to content

Commit

Permalink
refactor: Revert doctest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus23 committed Sep 26, 2024
1 parent 742ae22 commit f19f900
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions quinn-proto/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ impl TransportConfig {
/// idle timeout can result in permanently hung futures!
///
/// ```
/// # use std::convert::TryInto;
/// # use quinn_proto::{Duration, TransportConfig, VarInt, VarIntBoundsExceeded};
/// # use std::{convert::TryInto, time::Duration};
/// # use quinn_proto::{TransportConfig, VarInt, VarIntBoundsExceeded};
/// # fn main() -> Result<(), VarIntBoundsExceeded> {
/// let mut config = TransportConfig::default();
///
Expand Down Expand Up @@ -1093,8 +1093,8 @@ impl From<VarIntBoundsExceeded> for ConfigError {
/// constructed by converting directly from `VarInt`, or using `TryFrom<Duration>`.
///
/// ```
/// # use std::{convert::TryFrom};
/// # use quinn_proto::{Duration, IdleTimeout, VarIntBoundsExceeded, VarInt};
/// # use std::{convert::TryFrom, time::Duration};
/// # use quinn_proto::{IdleTimeout, VarIntBoundsExceeded, VarInt};
/// # fn main() -> Result<(), VarIntBoundsExceeded> {
/// // A `VarInt`-encoded value in milliseconds
/// let timeout = IdleTimeout::from(VarInt::from_u32(10_000));
Expand Down

0 comments on commit f19f900

Please sign in to comment.