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;
|
use crate::persistent_printer::PersistentPrinter;
|
||||||
|
|
||||||
|
#[expect(clippy::large_enum_variant)]
|
||||||
pub enum Command {
|
pub enum Command {
|
||||||
Backlog,
|
Backlog,
|
||||||
Typst(Typst, oneshot::Sender<anyhow::Result<()>>),
|
Typst(Typst, oneshot::Sender<anyhow::Result<()>>),
|
||||||
|
|
|
||||||
|
|
@ -79,10 +79,10 @@ impl PersistentPrinter {
|
||||||
|
|
||||||
pub fn print_backlog(&mut self) -> anyhow::Result<()> {
|
pub fn print_backlog(&mut self) -> anyhow::Result<()> {
|
||||||
// Don't try to print if the chances of success are zero.
|
// Don't try to print if the chances of success are zero.
|
||||||
if let Some(file) = &self.printer_file {
|
if let Some(file) = &self.printer_file
|
||||||
if !file.exists() {
|
&& !file.exists()
|
||||||
return Ok(());
|
{
|
||||||
}
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut files = vec![];
|
let mut files = vec![];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue