Skip to content

Commit

Permalink
Re-add clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CraftSpider committed Nov 13, 2024
1 parent 4f6a428 commit 2617e26
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/bridge_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ impl<'a> CoreBridgeState<'a> {
rv = true;

Check warning on line 577 in crates/bridge_core/src/lib.rs

View check run for this annotation

Codecov / codecov/patch

crates/bridge_core/src/lib.rs#L576-L577

Added lines #L576 - L577 were not covered by tests
}
let (name, digest) = oh.into_name_digest();
self.hooks.event_output_closed(name, digest, self.status);
self.hooks.event_output_closed(name, digest);
}

rv
Expand Down
2 changes: 1 addition & 1 deletion crates/engine_bibtex/src/bibs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion crates/engine_bibtex/src/bst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;

Check warning on line 437 in crates/engine_bibtex/src/bst.rs

View check run for this annotation

Codecov / codecov/patch

crates/engine_bibtex/src/bst.rs#L436-L437

Added lines #L436 - L437 were not covered by tests
return Ok(());
Expand Down
4 changes: 2 additions & 2 deletions crates/engine_bibtex/src/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Check warning on line 225 in crates/engine_bibtex/src/scan.rs

View check run for this annotation

Codecov / codecov/patch

crates/engine_bibtex/src/scan.rs#L224-L225

Added lines #L224 - L225 were not covered by tests
}
Expand Down Expand Up @@ -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)

Check warning on line 518 in crates/engine_bibtex/src/scan.rs

View check run for this annotation

Codecov / codecov/patch

crates/engine_bibtex/src/scan.rs#L518

Added line #L518 was not covered by tests
Expand Down

0 comments on commit 2617e26

Please sign in to comment.