Skip to content

Commit

Permalink
use reserve_exact
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan authored Jun 5, 2024
1 parent 9a985b7 commit e54d2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub struct Heap(Vec<u8>);

impl Heap {
pub fn reserve(&mut self, additional: usize) {
self.0.reserve(additional);
self.0.reserve_exact(additional);
}
}

Expand Down

0 comments on commit e54d2ee

Please sign in to comment.