aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hitomezashi.rs4
-rw-r--r--src/main.rs4
2 files changed, 4 insertions, 4 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 }
};
diff --git a/src/main.rs b/src/main.rs
index 6a44530..87274af 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -35,9 +35,9 @@ struct Cli {
#[arg(short, long)]
#[arg(default_value_t = 0.5)]
- #[arg(value_parser = value_parser!(f32))]
+ #[arg(value_parser = value_parser!(f64))]
/// Set skew
- skew: f32,
+ skew: f64,
}
/* CLI for hitomezashi */