diff --git a/showbits-thermal-printer/src/drawer.rs b/showbits-thermal-printer/src/drawer.rs index 5d3599c..f5a165b 100644 --- a/showbits-thermal-printer/src/drawer.rs +++ b/showbits-thermal-printer/src/drawer.rs @@ -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>), diff --git a/showbits-thermal-printer/src/persistent_printer.rs b/showbits-thermal-printer/src/persistent_printer.rs index 395f04e..ce44a1e 100644 --- a/showbits-thermal-printer/src/persistent_printer.rs +++ b/showbits-thermal-printer/src/persistent_printer.rs @@ -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![];