From 11272f63c5f80702f2d396b21848762b5e93d071 Mon Sep 17 00:00:00 2001 From: Kian Kasad Date: Mon, 3 Jun 2024 14:25:38 -0700 Subject: [PATCH] Add Default implementation for Units to satisfy Clippy --- src/unit.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/unit.rs b/src/unit.rs index babe135..6335077 100644 --- a/src/unit.rs +++ b/src/unit.rs @@ -277,6 +277,12 @@ impl Units { } } +impl Default for Units { + fn default() -> Self { + Self::new() + } +} + impl Mul for Units { type Output = Self;