Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-o-how committed Feb 7, 2025
1 parent 9a43216 commit cbd3d01
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/allocator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,7 @@ impl Allocator {
// we must maintain parity with the old deserialize_br code so need to track the skipped pairs
pub fn add_ghost_pair(&mut self, amount: usize) -> Result<(), EvalErr> {
if MAX_NUM_PAIRS - self.num_ghost_pairs - self.pair_vec.len() < amount {
return err(
self.nil(),
"too many pairs"
);
return err(self.nil(), "too many pairs");
}
self.num_ghost_pairs += amount;
Ok(())
Expand Down

0 comments on commit cbd3d01

Please sign in to comment.