Fix unused var etc warnings
parent
6235164df2
commit
b49d965695
|
@ -404,9 +404,9 @@ pub trait MailBackend: ::std::fmt::Debug + Send + Sync {
|
|||
|
||||
fn submit(
|
||||
&self,
|
||||
bytes: Vec<u8>,
|
||||
mailbox_hash: Option<MailboxHash>,
|
||||
flags: Option<Flag>,
|
||||
_bytes: Vec<u8>,
|
||||
_mailbox_hash: Option<MailboxHash>,
|
||||
_flags: Option<Flag>,
|
||||
) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Not supported in this backend."))
|
||||
}
|
||||
|
|
|
@ -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!(
|
||||
|
|
|
@ -364,7 +364,7 @@ impl MailBackend for NntpType {
|
|||
&self,
|
||||
bytes: Vec<u8>,
|
||||
mailbox_hash: Option<MailboxHash>,
|
||||
flags: Option<Flag>,
|
||||
_flags: Option<Flag>,
|
||||
) -> ResultFuture<()> {
|
||||
let connection = self.connection.clone();
|
||||
Ok(Box::pin(async move {
|
||||
|
|
|
@ -74,8 +74,8 @@ impl AccountSettings {
|
|||
}
|
||||
}
|
||||
|
||||
#[serde(default)]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(default)]
|
||||
pub struct MailboxConf {
|
||||
#[serde(alias = "rename")]
|
||||
pub alias: Option<String>,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -907,7 +907,7 @@ impl MailView {
|
|||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
rec(body, context, coordinates, &mut ret, active_jobs);
|
||||
ret
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue