Skip to content

Commit

Permalink
Use default for new
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Dec 5, 2023
1 parent c481aee commit 9324704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clvm-traits/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub mod tests {

impl TestAllocator {
pub fn new() -> Self {
TestAllocator { atoms: vec![] }
TestAllocator::default()
}

fn new_atom(&mut self, buf: &[u8]) -> TestNode {
Expand Down

0 comments on commit 9324704

Please sign in to comment.