diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2024-04-20 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2024-04-20 00:00:00 +0000 |
commit | eaf3969ee6d74911b8540cacc2d0219482209b98fe625e4322d8a4d869ffab76 (patch) | |
tree | 506401487aa2d7785d3215f1bbf821bae3422ef47a494e6bcae84674d7134396 /src/hitomezashi.rs | |
parent | 13d24b1493dbd52cfbe2290d3871e69641bd1cfcc6bdcc62dc766e8562f5b057 (diff) | |
download | hitomezashi-rs-eaf3969ee6d74911b8540cacc2d0219482209b98fe625e4322d8a4d869ffab76.tar.gz hitomezashi-rs-eaf3969ee6d74911b8540cacc2d0219482209b98fe625e4322d8a4d869ffab76.zip |
Remove unnecessary take() call
Diffstat (limited to 'src/hitomezashi.rs')
-rw-r--r-- | src/hitomezashi.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hitomezashi.rs b/src/hitomezashi.rs index a14296a..155f0b7 100644 --- a/src/hitomezashi.rs +++ b/src/hitomezashi.rs @@ -76,7 +76,7 @@ pub fn hitomezashi(width: usize, height: usize, skew: Option<f64>) { println!(); // height-1 because the first row has already been printed - for row_bit in row_bits.iter().take(height - 1) { + for row_bit in row_bits.iter() { /* each square in each successive row is derived from the square above it. the row bits * represent whether there's a stitch between the two squares. if there's a stitch, the * squares are different, otherwise they are the same. */ |