Skip to content

Commit

Permalink
Add Default implementation for Units to satisfy Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kdkasad committed Jun 3, 2024
1 parent b25f3f7 commit 11272f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/unit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@ impl Units {
}
}

impl Default for Units {
fn default() -> Self {
Self::new()
}
}

impl Mul for Units {
type Output = Self;

Expand Down

0 comments on commit 11272f6

Please sign in to comment.