Fix clippy warnings

This commit is contained in:
Joscha 2025-09-02 20:17:49 +02:00
parent 2f9472b803
commit 4ba89dfb30
2 changed files with 5 additions and 4 deletions

View file

@ -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<()>>),

View file

@ -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![];