From 7d963718298e18262ac0e9f6fc7b63a0033a0094 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 15 Aug 2022 19:01:41 +0200 Subject: [PATCH] typo --- src/info.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/info.rs b/src/info.rs index 8e67d5e..12c1f9d 100644 --- a/src/info.rs +++ b/src/info.rs @@ -35,10 +35,7 @@ pub async fn info() { // -1 car la première semaine est déjà compté let end_date = start_date + Duration::weeks(rep - 1); - data.insert( - i, - vec![(start_date, end_date)], - ); + data.insert(i, vec![(start_date, end_date)]); } e if e.starts_with("Reprise") => { let captures = re.captures(&e).unwrap(); @@ -53,10 +50,7 @@ pub async fn info() { let mut vec = data.get(&i).unwrap().to_owned(); vec.push((start_date, end_date)); - data.insert( - i, - vec, - ); + data.insert(i, vec); } _ => (), }