Fix clippy warnings
This commit is contained in:
parent
2f9472b803
commit
4ba89dfb30
2 changed files with 5 additions and 4 deletions
|
|
@ -3,6 +3,7 @@ use tokio::sync::{mpsc, oneshot};
|
|||
|
||||
use crate::persistent_printer::PersistentPrinter;
|
||||
|
||||
#[expect(clippy::large_enum_variant)]
|
||||
pub enum Command {
|
||||
Backlog,
|
||||
Typst(Typst, oneshot::Sender<anyhow::Result<()>>),
|
||||
|
|
|
|||
|
|
@ -79,10 +79,10 @@ impl PersistentPrinter {
|
|||
|
||||
pub fn print_backlog(&mut self) -> anyhow::Result<()> {
|
||||
// Don't try to print if the chances of success are zero.
|
||||
if let Some(file) = &self.printer_file {
|
||||
if !file.exists() {
|
||||
return Ok(());
|
||||
}
|
||||
if let Some(file) = &self.printer_file
|
||||
&& !file.exists()
|
||||
{
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let mut files = vec![];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue