forked from Anri/cal8tor
clippy
This commit is contained in:
parent
83563529be
commit
220f46c5de
2 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ fn tdtp(timetable: &mut Timetable) {
|
||||||
// Keep only elements who have multiples TD/TP
|
// Keep only elements who have multiples TD/TP
|
||||||
td_or_tp.retain(|course| *counts.get(&get_entry(course.0)).unwrap() > 1);
|
td_or_tp.retain(|course| *counts.get(&get_entry(course.0)).unwrap() > 1);
|
||||||
|
|
||||||
let mut multiselected: Vec<String> = td_or_tp.iter().map(|el| get_selection(el)).collect();
|
let mut multiselected: Vec<String> = td_or_tp.iter().map(get_selection).collect();
|
||||||
multiselected.sort();
|
multiselected.sort();
|
||||||
|
|
||||||
let defaults = vec![false; multiselected.len()];
|
let defaults = vec![false; multiselected.len()];
|
||||||
|
|
|
@ -154,7 +154,7 @@ pub fn build(timetable: models::Timetable, dates: D) -> Vec<models::Course> {
|
||||||
|
|
||||||
// Start date of the back-to-school week
|
// Start date of the back-to-school week
|
||||||
let datetimes = dates.get(&timetable.1 .0).unwrap();
|
let datetimes = dates.get(&timetable.1 .0).unwrap();
|
||||||
let before_break = datetimes.get(0).unwrap();
|
let before_break = datetimes.first().unwrap();
|
||||||
let mut date = before_break.0;
|
let mut date = before_break.0;
|
||||||
let mut rep = before_break.1;
|
let mut rep = before_break.1;
|
||||||
// For each weeks
|
// For each weeks
|
||||||
|
|
Loading…
Reference in a new issue