Fix new 1.77 clippy lints
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>pull/372/head
parent
6a66afe93e
commit
a69c674c07
|
@ -90,7 +90,6 @@ pub use melib::uuid;
|
|||
|
||||
pub extern crate bitflags;
|
||||
pub extern crate serde_json;
|
||||
#[macro_use]
|
||||
pub extern crate smallvec;
|
||||
pub extern crate termion;
|
||||
|
||||
|
|
|
@ -56,6 +56,7 @@ impl File {
|
|||
.read(true)
|
||||
.write(true)
|
||||
.create(true)
|
||||
.truncate(false)
|
||||
.open(&self.path)
|
||||
.chain_err_summary(|| format!("Could not create/open path {}", self.path.display()))
|
||||
}
|
||||
|
|
|
@ -411,7 +411,7 @@ impl MailBackend for ImapType {
|
|||
let inbox = timeout(uid_store.timeout, uid_store.mailboxes.lock())
|
||||
.await?
|
||||
.get(&mailbox_hash)
|
||||
.map(std::clone::Clone::clone)
|
||||
.cloned()
|
||||
.unwrap();
|
||||
let mut conn = timeout(uid_store.timeout, main_conn.lock()).await?;
|
||||
watch::examine_updates(inbox, &mut conn, &uid_store).await?;
|
||||
|
|
|
@ -69,7 +69,7 @@ pub async fn idle(kit: ImapWatchKit) -> Result<()> {
|
|||
.await
|
||||
.values()
|
||||
.find(|f| f.parent.is_none() && (f.special_usage() == SpecialUsageMailbox::Inbox))
|
||||
.map(std::clone::Clone::clone)
|
||||
.cloned()
|
||||
{
|
||||
Some(mailbox) => mailbox,
|
||||
None => {
|
||||
|
|
|
@ -258,7 +258,7 @@ impl MailBackend for NntpType {
|
|||
.lock()
|
||||
.await
|
||||
.get(&mailbox_hash)
|
||||
.map(std::clone::Clone::clone)
|
||||
.cloned()
|
||||
.ok_or_else(|| {
|
||||
Error::new(format!(
|
||||
"Mailbox with hash {} not found in NNTP connection, this could possibly \
|
||||
|
|
Loading…
Reference in New Issue