From 3f4b5e1dfe684b91c4c69cb03db479bada5685bfe875e21f3d6cabd0ec72b981 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Wed, 24 Apr 2024 00:00:00 +0000 Subject: Lint code with cargo clippy --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index f0e491d..481e7eb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -65,7 +65,7 @@ pub fn generate(width: usize, height: usize, skew: Option) { assert!(width >= 1, "Width must be a positive number!"); assert!(height >= 1, "Height must be a positive number!"); assert!( - skew >= 0.0 && skew <= 1.0, + (0.0..=1.0).contains(&skew), "Skew must be between zero and one inclusive!" ); -- cgit v1.2.3