summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
-rw-r--r--src/main.rs2
2 files changed, 1 insertions, 3 deletions
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<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!"
);
diff --git a/src/main.rs b/src/main.rs
index e71d6e7..f7bee6d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -16,8 +16,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-use hitomezashi_rs;
-
include!("cli.rs");
// CLI for hitomezashi