From eaf3969ee6d74911b8540cacc2d0219482209b98fe625e4322d8a4d869ffab76 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sat, 20 Apr 2024 00:00:00 +0000 Subject: Remove unnecessary take() call --- src/hitomezashi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hitomezashi.rs') 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) { 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. */ -- cgit v1.2.3