aboutsummaryrefslogtreecommitdiff
path: root/src/hitomezashi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/hitomezashi.rs')
-rw-r--r--src/hitomezashi.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hitomezashi.rs b/src/hitomezashi.rs
index d5aa417..dede1ac 100644
--- a/src/hitomezashi.rs
+++ b/src/hitomezashi.rs
@@ -25,9 +25,9 @@ fn print_square(is_transparent: bool) {
print!("{}", if is_transparent { TRANSPARENT_SQUARE } else { OPAQUE_SQUARE });
}
-pub fn hitomezashi(width: usize, height: usize, skew: Option<f32>) {
+pub fn hitomezashi(width: usize, height: usize, skew: Option<f64>) {
let skew: f64 = match skew {
- Some(n) => { n.into() }
+ Some(n) => { n }
None => { 0.5 }
};