diff --git a/imap-codec/src/lib.rs b/imap-codec/src/lib.rs index 2737665f..30afde92 100644 --- a/imap-codec/src/lib.rs +++ b/imap-codec/src/lib.rs @@ -22,14 +22,13 @@ //! ### Example //! //! ```rust -//! # use imap_codec::{ -//! # decode::Decoder, -//! # imap_types::{ -//! # core::Text, -//! # response::{Code, Greeting, GreetingKind}, -//! # }, -//! # GreetingCodec, -//! # }; +//! // Run 'cargo add imap-types' in your project's root directory. +//! use imap_codec::{decode::Decoder, GreetingCodec}; +//! use imap_types::{ +//! core::Text, +//! response::{Code, Greeting, GreetingKind}, +//! }; +//! //! let (remaining, greeting) = GreetingCodec::default() //! .decode(b"* OK [ALERT] Hello, World!\r\n") //! .unwrap(); @@ -55,14 +54,13 @@ //! ### Example //! //! ```rust -//! # use imap_codec::{ -//! # encode::Encoder, -//! # imap_types::{ -//! # core::Text, -//! # response::{Code, Greeting, GreetingKind}, -//! # }, -//! # GreetingCodec, -//! # }; +//! // Run 'cargo add imap-types' in your project's root directory. +//! use imap_codec::{encode::Encoder, GreetingCodec}; +//! use imap_types::{ +//! core::Text, +//! response::{Code, Greeting, GreetingKind}, +//! }; +//! //! let greeting = Greeting { //! kind: GreetingKind::Ok, //! code: Some(Code::Alert),