Skip to content

Commit 3afa239

Browse files
committed
Fix clippy
1 parent a473a14 commit 3afa239

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

crates/engine_bibtex/src/exec.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,10 @@ impl<'a, 'bib, 'cbs> ExecCtx<'a, 'bib, 'cbs> {
9999
) -> Result<ExecVal, BibtexError> {
100100
if let Some(pop) = self.lit_stack.pop() {
101101
if let ExecVal::String(str) = pop {
102-
if self.checkpoint.is_before(str) {
103-
if !pool.remove_last_str(str) {
104-
self.write_logs("Nontop top of string stack");
105-
print_confusion(self);
106-
return Err(BibtexError::Fatal);
107-
}
102+
if self.checkpoint.is_before(str) && !pool.remove_last_str(str) {
103+
self.write_logs("Nontop top of string stack");
104+
print_confusion(self);
105+
return Err(BibtexError::Fatal);
108106
}
109107
}
110108
Ok(pop)

crates/engine_bibtex/src/hash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ impl HashData {
304304
loop {
305305
if self.len() == HASH_BASE {
306306
print_overflow(ctx);
307-
ctx.write_logs(&format!("hash size {}\n", HASH_SIZE));
307+
ctx.write_logs(&format!("hash size {HASH_SIZE}\n"));
308308
return Err(BibtexError::Fatal);
309309
}
310310
self.set_len(self.len() - 1);

0 commit comments

Comments
 (0)