diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2024-04-24 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2024-04-24 00:00:00 +0000 |
commit | 3f4b5e1dfe684b91c4c69cb03db479bada5685bfe875e21f3d6cabd0ec72b981 (patch) | |
tree | da4047a22ca7de499958c76f475d53b72a3fd30e2b4512fb731d0bbfd06f3d6b /src/lib.rs | |
parent | 341164b61deb8fe6cc125755b49f10d4387b45f2d92275580d3a581b71b17abb (diff) | |
download | hitomezashi-rs-3f4b5e1dfe684b91c4c69cb03db479bada5685bfe875e21f3d6cabd0ec72b981.tar.gz hitomezashi-rs-3f4b5e1dfe684b91c4c69cb03db479bada5685bfe875e21f3d6cabd0ec72b981.zip |
Lint code with cargo clippy
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -65,7 +65,7 @@ pub fn generate(width: usize, height: usize, skew: Option<f64>) { 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!" ); |