File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,7 +140,9 @@ impl TraineeBatchTemplate {
140140 Submission :: Attendance ( Attendance :: Absent { .. } ) => String :: from ( "attendance-absent" ) ,
141141 Submission :: Attendance ( Attendance :: OnTime { .. } ) => String :: from ( "attendance-present" ) ,
142142 Submission :: Attendance ( Attendance :: Late { .. } ) => String :: from ( "attendance-late" ) ,
143- Submission :: Attendance ( Attendance :: WrongDay { .. } ) => String :: from ( "attendance-wrong-day" ) ,
143+ Submission :: Attendance ( Attendance :: WrongDay { .. } ) => {
144+ String :: from ( "attendance-wrong-day" )
145+ }
144146 Submission :: PullRequest { pull_request } => match pull_request. state {
145147 PrState :: NeedsReview => "pr-needs-review" . to_owned ( ) ,
146148 PrState :: Reviewed => "pr-reviewed" . to_owned ( ) ,
Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ pub struct Attendance {
3636impl Attendance {
3737 pub fn to_attendance_enum ( & self , start_time : DateTime < Utc > ) -> crate :: course:: Attendance {
3838 if self . timestamp . date_naive ( ) != start_time. date_naive ( ) {
39- return crate :: course:: Attendance :: WrongDay { register_url : self . register_url . clone ( ) } ;
39+ return crate :: course:: Attendance :: WrongDay {
40+ register_url : self . register_url . clone ( ) ,
41+ } ;
4042 }
4143 let late_by = self . timestamp . signed_duration_since ( start_time) ;
4244 if late_by. num_minutes ( ) > 10 {
You can’t perform that action at this time.
0 commit comments