forked from meli/meli
1
Fork 0

Fix two minor lints

imap-connection-changes
Manos Pitsidianakis 2023-04-06 09:56:56 +03:00
parent 1a4384db08
commit 61a009c01a
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
2 changed files with 2 additions and 1 deletions

View File

@ -362,6 +362,7 @@ impl FileSettings {
}
#[cfg(test)]
return Ok(FileSettings::default());
#[cfg(not(test))]
return Err(Error::new("No configuration file found."));
}

View File

@ -244,7 +244,7 @@ impl Component for EmbedContainer {
match embed_guard.is_active() {
Ok(WaitStatus::Exited(_, exit_code)) => {
drop(embed_guard);
let embed = self.embed.take();
_ = self.embed.take();
if exit_code != 0 {
context.replies.push_back(UIEvent::Notification(
None,