typo
This commit is contained in:
parent
2148166874
commit
7d96371829
1 changed files with 2 additions and 8 deletions
10
src/info.rs
10
src/info.rs
|
@ -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,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue