From 341164b61deb8fe6cc125755b49f10d4387b45f2d92275580d3a581b71b17abb Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Wed, 24 Apr 2024 00:00:00 +0000 Subject: Format code with cargo fmt --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index 92e3004..f0e491d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -64,7 +64,10 @@ 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, "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(); -- cgit v1.2.3