Fix new 1.77 clippy lints
Run cargo lints / Lint on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (pull_request) Successful in 7m20s Details
Run Tests / Test on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (pull_request) Successful in 12m33s Details

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
pull/372/head
Manos Pitsidianakis 2024-03-24 16:04:51 +02:00
parent 6a66afe93e
commit a69c674c07
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
5 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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()))
}

View File

@ -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?;

View File

@ -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 => {

View File

@ -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 \