Fix two minor lints
parent
1a4384db08
commit
61a009c01a
|
@ -362,6 +362,7 @@ impl FileSettings {
|
|||
}
|
||||
#[cfg(test)]
|
||||
return Ok(FileSettings::default());
|
||||
#[cfg(not(test))]
|
||||
return Err(Error::new("No configuration file found."));
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue