File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -156,12 +156,13 @@ where
156156 let mut reached_days = 0u32 ;
157157 for day in 1 ..=31 {
158158 if let Some ( date) = NaiveDate :: from_ymd_opt ( year, month_num, day)
159- && date <= today {
160- total_days += 1 ;
161- if reached_or_archived ( date ) {
162- reached_days += 1 ;
163- }
159+ && date <= today
160+ {
161+ total_days += 1 ;
162+ if reached_or_archived ( date ) {
163+ reached_days += 1 ;
164164 }
165+ }
165166 }
166167
167168 let col_width = VIEW_WIDTH / 3 ;
@@ -200,12 +201,13 @@ where
200201 for m in 1 ..=12 {
201202 for day in 1 ..=31 {
202203 if let Some ( date) = NaiveDate :: from_ymd_opt ( y, m, day)
203- && date <= today {
204- total_days += 1 ;
205- if reached_or_archived ( date ) {
206- reached_days += 1 ;
207- }
204+ && date <= today
205+ {
206+ total_days += 1 ;
207+ if reached_or_archived ( date ) {
208+ reached_days += 1 ;
208209 }
210+ }
209211 }
210212 }
211213
You can’t perform that action at this time.
0 commit comments