This commit is contained in:
Mylloon 2022-08-15 19:01:41 +02:00
parent 2148166874
commit 7d96371829
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -35,10 +35,7 @@ pub async fn info() {
// -1 car la première semaine est déjà compté // -1 car la première semaine est déjà compté
let end_date = start_date + Duration::weeks(rep - 1); let end_date = start_date + Duration::weeks(rep - 1);
data.insert( data.insert(i, vec![(start_date, end_date)]);
i,
vec![(start_date, end_date)],
);
} }
e if e.starts_with("Reprise") => { e if e.starts_with("Reprise") => {
let captures = re.captures(&e).unwrap(); let captures = re.captures(&e).unwrap();
@ -53,10 +50,7 @@ pub async fn info() {
let mut vec = data.get(&i).unwrap().to_owned(); let mut vec = data.get(&i).unwrap().to_owned();
vec.push((start_date, end_date)); vec.push((start_date, end_date));
data.insert( data.insert(i, vec);
i,
vec,
);
} }
_ => (), _ => (),
} }