From 2ee8e814013381424f1f4277f64d2a16dacb5f97 Mon Sep 17 00:00:00 2001 From: Rune Tynan Date: Sat, 28 Sep 2024 22:19:32 -0700 Subject: [PATCH] Re-add clippy fixes --- crates/bridge_core/src/lib.rs | 2 +- crates/engine_bibtex/src/bibs.rs | 2 +- crates/engine_bibtex/src/bst.rs | 2 +- crates/engine_bibtex/src/scan.rs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/bridge_core/src/lib.rs b/crates/bridge_core/src/lib.rs index a4ea06e04..6541c0d7a 100644 --- a/crates/bridge_core/src/lib.rs +++ b/crates/bridge_core/src/lib.rs @@ -577,7 +577,7 @@ impl<'a> CoreBridgeState<'a> { rv = true; } let (name, digest) = oh.into_name_digest(); - self.hooks.event_output_closed(name, digest, self.status); + self.hooks.event_output_closed(name, digest); } rv diff --git a/crates/engine_bibtex/src/bibs.rs b/crates/engine_bibtex/src/bibs.rs index 67ea6285a..830467064 100644 --- a/crates/engine_bibtex/src/bibs.rs +++ b/crates/engine_bibtex/src/bibs.rs @@ -134,7 +134,7 @@ pub(crate) fn get_bib_command_or_entry_and_process( let mut bib_command = None; let mut init = globals.buffers.init(BufTy::Base); - while !Scan::new().chars(&[b'@']).scan_till(globals.buffers, init) { + while !Scan::new().chars(b"@").scan_till(globals.buffers, init) { if !input_ln( ctx.engine, &mut globals.bibs.top_file_mut().file, diff --git a/crates/engine_bibtex/src/bst.rs b/crates/engine_bibtex/src/bst.rs index 3e7470953..8ec38dac1 100644 --- a/crates/engine_bibtex/src/bst.rs +++ b/crates/engine_bibtex/src/bst.rs @@ -432,7 +432,7 @@ fn bst_macro_command( .buffers .set_offset(BufTy::Base, 2, globals.buffers.offset(BufTy::Base, 2) + 1); let init = globals.buffers.init(BufTy::Base); - if !Scan::new().chars(&[b'"']).scan_till(globals.buffers, init) { + if !Scan::new().chars(b"\"").scan_till(globals.buffers, init) { ctx.write_logs("There's no `\"' to end macro definition"); bst_err_print_and_look_for_blank_line(ctx, globals.buffers, globals.pool)?; return Ok(()); diff --git a/crates/engine_bibtex/src/scan.rs b/crates/engine_bibtex/src/scan.rs index 99c950af5..32ad9827e 100644 --- a/crates/engine_bibtex/src/scan.rs +++ b/crates/engine_bibtex/src/scan.rs @@ -220,7 +220,7 @@ fn handle_char( .set_offset(BufTy::Base, 2, globals.buffers.offset(BufTy::Base, 2) + 1); let init = globals.buffers.init(BufTy::Base); - if !Scan::new().chars(&[b'"']).scan_till(globals.buffers, init) { + if !Scan::new().chars(b"\"").scan_till(globals.buffers, init) { ctx.write_logs("No `\"` to end string literal"); return skip_token_print(ctx, globals.buffers, globals.pool); } @@ -512,7 +512,7 @@ fn scan_balanced_braces( let init = buffers.init(BufTy::Base); if (c == b'{' || c == b'}' - || !Scan::new().chars(&[b'{', b'}']).scan_till(buffers, init)) + || !Scan::new().chars(b"{}").scan_till(buffers, init)) && !eat_bib_white_space(ctx, buffers, bibs) { return eat_bib_print(ctx, buffers, pool, bibs, bib_command)