diff --git a/melib/src/backends.rs b/melib/src/backends.rs index 510e1bf69..e958c11a0 100644 --- a/melib/src/backends.rs +++ b/melib/src/backends.rs @@ -404,9 +404,9 @@ pub trait MailBackend: ::std::fmt::Debug + Send + Sync { fn submit( &self, - bytes: Vec, - mailbox_hash: Option, - flags: Option, + _bytes: Vec, + _mailbox_hash: Option, + _flags: Option, ) -> ResultFuture<()> { Err(MeliError::new("Not supported in this backend.")) } diff --git a/melib/src/backends/maildir/backend.rs b/melib/src/backends/maildir/backend.rs index 870d189a3..e515c2c1e 100644 --- a/melib/src/backends/maildir/backend.rs +++ b/melib/src/backends/maildir/backend.rs @@ -1173,7 +1173,7 @@ impl MaildirType { } } Ok(children) - }; + } let root_path = PathBuf::from(settings.root_mailbox()).expand(); if !root_path.exists() { return Err(MeliError::new(format!( diff --git a/melib/src/backends/nntp.rs b/melib/src/backends/nntp.rs index 1056e5b00..27c372a88 100644 --- a/melib/src/backends/nntp.rs +++ b/melib/src/backends/nntp.rs @@ -364,7 +364,7 @@ impl MailBackend for NntpType { &self, bytes: Vec, mailbox_hash: Option, - flags: Option, + _flags: Option, ) -> ResultFuture<()> { let connection = self.connection.clone(); Ok(Box::pin(async move { diff --git a/melib/src/conf.rs b/melib/src/conf.rs index 0395dd4d5..d234aeba9 100644 --- a/melib/src/conf.rs +++ b/melib/src/conf.rs @@ -74,8 +74,8 @@ impl AccountSettings { } } -#[serde(default)] #[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(default)] pub struct MailboxConf { #[serde(alias = "rename")] pub alias: Option, diff --git a/melib/src/text_processing/line_break.rs b/melib/src/text_processing/line_break.rs index 46490426f..46b00b740 100644 --- a/melib/src/text_processing/line_break.rs +++ b/melib/src/text_processing/line_break.rs @@ -158,7 +158,7 @@ impl<'a> Iterator for LineBreakCandidateIter<'a> { } $last_break = $pos; }; - }; + } // After end of text, there are no breaks. if self.pos > self.text.len() { return None; diff --git a/src/components/mail/view.rs b/src/components/mail/view.rs index f57330c22..72f11cca4 100644 --- a/src/components/mail/view.rs +++ b/src/components/mail/view.rs @@ -907,7 +907,7 @@ impl MailView { } } } - }; + } rec(body, context, coordinates, &mut ret, active_jobs); ret } diff --git a/src/conf.rs b/src/conf.rs index 56042e82f..544dc4529 100644 --- a/src/conf.rs +++ b/src/conf.rs @@ -130,8 +130,8 @@ pub struct MailUIConf { pub pgp: PGPSettingsOverride, } -#[serde(default)] #[derive(Debug, Default, Clone, Serialize, Deserialize)] +#[serde(default)] pub struct FileMailboxConf { #[serde(flatten)] pub conf_override: MailUIConf, diff --git a/src/conf/accounts.rs b/src/conf/accounts.rs index a90d73551..fac4d6e59 100644 --- a/src/conf/accounts.rs +++ b/src/conf/accounts.rs @@ -2264,7 +2264,7 @@ fn build_mailboxes_order( } } node - }; + } tree.push(rec(*h, &mailbox_entries, 0)); } @@ -2356,7 +2356,7 @@ fn build_mailboxes_order( iter.peek() != None, ); } - }; + } rec(node, &mailbox_entries, 0, 0, false); }