File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ fn draw_face() -> impl Iterator<Item = Pixel<BinaryColor>> {
352
352
Circle :: new ( CENTER , SIZE * 2 ) . into_styled ( PrimitiveStyle :: with_stroke ( BinaryColor :: On , 1 ) ) ;
353
353
354
354
// Create 12 `Line`s starting from the outer edge and drawing inwards by `tic_len` pixels
355
- let tics = ( 0 ..12 ) . into_iter ( ) . map ( move |index| {
355
+ let tics = ( 0 ..12 ) . map ( move |index| {
356
356
// Start angle around the circle, in radians
357
357
let angle = START + ( PI * 2.0 / 12.0 ) * index as f32 ;
358
358
@@ -369,7 +369,7 @@ fn draw_face() -> impl Iterator<Item = Pixel<BinaryColor>> {
369
369
370
370
// Create a single iterator of pixels, first iterating over the circle, then over the 12 lines
371
371
// generated
372
- face. pixels ( ) . into_iter ( ) . chain ( tics. flatten ( ) )
372
+ face. pixels ( ) . chain ( tics. flatten ( ) )
373
373
}
374
374
375
375
/// Draw the seconds hand given a seconds value (0 - 59)
@@ -395,9 +395,7 @@ fn draw_seconds_hand(seconds: u32) -> impl Iterator<Item = Pixel<BinaryColor>> {
395
395
// Add a fancy circle near the end of the hand
396
396
let decoration = Circle :: new ( decoration_position, 3 ) . into_styled ( decoration_style) ;
397
397
398
- hand. pixels ( )
399
- . into_iter ( )
400
- . chain ( decoration. pixels ( ) . into_iter ( ) )
398
+ hand. pixels ( ) . chain ( decoration. pixels ( ) . into_iter ( ) )
401
399
}
402
400
403
401
#[ exception]
You can’t perform that action at this time.
0 commit comments