From 03d534524ffec24723442cb2d321c44a817cc825 Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 9 Sep 2024 21:09:30 +0000 Subject: [PATCH] chore: fix clippy warnings --- src/client.rs | 4 +++- src/types/fetch.rs | 4 +++- src/types/mod.rs | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/client.rs b/src/client.rs index 37cef95..47099ed 100644 --- a/src/client.rs +++ b/src/client.rs @@ -59,7 +59,9 @@ impl AsMut for Session { } } -/// An (unauthenticated) handle to talk to an IMAP server. This is what you get when first +/// An (unauthenticated) handle to talk to an IMAP server. +/// +/// This is what you get when first /// connecting. A succesfull call to [`Client::login`] or [`Client::authenticate`] will return a /// [`Session`] instance that provides the usual IMAP methods. // Both `Client` and `Session` deref to [`Connection`](struct.Connection.html), the underlying diff --git a/src/types/fetch.rs b/src/types/fetch.rs index 946762b..3375d88 100644 --- a/src/types/fetch.rs +++ b/src/types/fetch.rs @@ -12,7 +12,9 @@ use crate::types::ResponseData; const DATE_TIME_FORMAT: &str = "%d-%b-%Y %H:%M:%S %z"; /// An IMAP [`FETCH` response](https://tools.ietf.org/html/rfc3501#section-7.4.2) that contains -/// data about a particular message. This response occurs as the result of a `FETCH` or `STORE` +/// data about a particular message. +/// +/// This response occurs as the result of a `FETCH` or `STORE` /// command, as well as by unilateral server decision (e.g., flag updates). #[derive(Debug)] pub struct Fetch { diff --git a/src/types/mod.rs b/src/types/mod.rs index a268351..2dfbcfd 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -105,6 +105,8 @@ pub type Uid = u32; /// messages which have greater UIDs. pub type Seq = u32; +/// Message flags. +/// /// With the exception of [`Flag::Custom`], these flags are system flags that are pre-defined in /// [RFC 3501 section 2.3.2](https://tools.ietf.org/html/rfc3501#section-2.3.2). All system flags /// begin with `\` in the IMAP protocol. Certain system flags (`\Deleted` and `\Seen`) have @@ -217,6 +219,7 @@ mod quota; pub use self::quota::*; /// Responses that the server sends that are not related to the current command. +/// /// [RFC 3501](https://tools.ietf.org/html/rfc3501#section-7) states that clients need to be able /// to accept any response at any time. These are the ones we've encountered in the wild. ///