From 6443031642ebd84ddd145d419cbb57a5ac6f8c0d Mon Sep 17 00:00:00 2001 From: Nathan West Date: Thu, 18 Aug 2022 16:37:17 -0400 Subject: [PATCH] Add common traits to Width and Height --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d4b73aa..e933b21 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,9 +18,9 @@ //! ``` //! -#[derive(Debug)] +#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] pub struct Width(pub u16); -#[derive(Debug)] +#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] pub struct Height(pub u16); #[cfg(unix)]