File tree 5 files changed +6
-5
lines changed 5 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ fn neighbors(
83
83
z : usize ,
84
84
width : usize ,
85
85
) -> impl Iterator < Item = ( usize , usize , usize ) > {
86
- std:: iter:: from_coroutine ( move || {
86
+ std:: iter:: from_coroutine ( # [ coroutine ] move || {
87
87
if x > 0 {
88
88
yield ( x - 1 , y, z) ;
89
89
}
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ impl State {
234
234
let min_use = bp. min_use ;
235
235
let max_use = bp. max_use ;
236
236
237
- std:: iter:: from_coroutine ( move || {
237
+ std:: iter:: from_coroutine ( # [ coroutine ] move || {
238
238
// not buying
239
239
let mut ns = self ;
240
240
ns. collect ( ) ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ impl Entry {
36
36
& ' a self ,
37
37
grid : & ' b Grid < u8 > ,
38
38
) -> impl Iterator < Item = ( usize , usize ) > + ' b {
39
- std:: iter:: from_coroutine ( move || {
39
+ std:: iter:: from_coroutine ( # [ coroutine ] move || {
40
40
let x = self . x as i32 ;
41
41
let y = self . y as i32 ;
42
42
let len = self . len as i32 ;
@@ -61,7 +61,7 @@ impl Entry {
61
61
62
62
#[ inline]
63
63
fn get_entries ( input : & Grid < u8 > ) -> impl Iterator < Item = Entry > + ' _ {
64
- std:: iter:: from_coroutine ( move || {
64
+ std:: iter:: from_coroutine ( # [ coroutine ] move || {
65
65
let mut current = None ;
66
66
for y in 0 ..input. height {
67
67
for x in 0 ..input. width {
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ impl<T> Grid<T> {
73
73
) -> impl Iterator < Item = ( Direction , usize , usize ) > {
74
74
let width = self . width ;
75
75
let height = self . height ;
76
- std:: iter:: from_coroutine ( move || {
76
+ std:: iter:: from_coroutine ( # [ coroutine ] move || {
77
77
if x != 0 {
78
78
yield ( Direction :: West , x - 1 , y) ;
79
79
}
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ macro_rules! inner_run {
76
76
}
77
77
78
78
pub struct TimingData {
79
+ #[ allow( dead_code) ]
79
80
pub parsing : Duration ,
80
81
pub part1 : Duration ,
81
82
pub part2 : Duration ,
You can’t perform that action at this time.
0 commit comments