Fix trivial clippy warnings.
This commit is contained in:
parent
7868e312ff
commit
753e1b9db1
2 changed files with 7 additions and 9 deletions
|
|
@ -1,8 +1,6 @@
|
|||
use base64;
|
||||
use bufstream::BufStream;
|
||||
#[cfg(feature = "tls")]
|
||||
use native_tls::{TlsConnector, TlsStream};
|
||||
use nom;
|
||||
use std::collections::HashSet;
|
||||
use std::io::{Read, Write};
|
||||
use std::net::{TcpStream, ToSocketAddrs};
|
||||
|
|
|
|||
|
|
@ -172,13 +172,13 @@ impl Flag<'static> {
|
|||
impl<'a> fmt::Display for Flag<'a> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match *self {
|
||||
Flag::Seen => write!(f, "{}", "\\Seen"),
|
||||
Flag::Answered => write!(f, "{}", "\\Answered"),
|
||||
Flag::Flagged => write!(f, "{}", "\\Flagged"),
|
||||
Flag::Deleted => write!(f, "{}", "\\Deleted"),
|
||||
Flag::Draft => write!(f, "{}", "\\Draft"),
|
||||
Flag::Recent => write!(f, "{}", "\\Recent"),
|
||||
Flag::MayCreate => write!(f, "{}", "\\*"),
|
||||
Flag::Seen => write!(f, "\\Seen"),
|
||||
Flag::Answered => write!(f, "\\Answered"),
|
||||
Flag::Flagged => write!(f, "\\Flagged"),
|
||||
Flag::Deleted => write!(f, "\\Deleted"),
|
||||
Flag::Draft => write!(f, "\\Draft"),
|
||||
Flag::Recent => write!(f, "\\Recent"),
|
||||
Flag::MayCreate => write!(f, "\\*"),
|
||||
Flag::Custom(ref s) => write!(f, "{}", s),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue