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 | 341164b61deb8fe6cc125755b49f10d4387b45f2d92275580d3a581b71b17abb (patch) | |
tree | 7732123701978501cd612a8b639170c4bfbe676c5b21e24fe316f4ff60567dd1 /src/lib.rs | |
parent | 23b9d78fb8dc2c24321fad8d68155fbdbd8e68089735589e8f81c4478c35891b (diff) | |
download | hitomezashi-rs-341164b61deb8fe6cc125755b49f10d4387b45f2d92275580d3a581b71b17abb.tar.gz hitomezashi-rs-341164b61deb8fe6cc125755b49f10d4387b45f2d92275580d3a581b71b17abb.zip |
Format code with cargo fmt
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -64,7 +64,10 @@ 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, "Skew must be between zero and one inclusive!"); + assert!( + skew >= 0.0 && skew <= 1.0, + "Skew must be between zero and one inclusive!" + ); let mut rng = rand::thread_rng(); let brn = Bernoulli::new(skew).unwrap(); |