Verified Commit c2c59542 authored by Maxime Buquet's avatar Maxime Buquet
Browse files

timelog::helpers: rustfmt


Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent c952377d
......@@ -74,53 +74,28 @@ mod test {
TimelogEntry::new_slack(Utc.ymd(2018, 7, 2).and_hms(10, 0, 0), Some("slack1 **")),
TimelogEntry::new_full(
Utc.ymd(2018, 7, 2).and_hms(10, 15, 0),
Task::new(vec![
"project1",
"category1",
"activity1",
"task1",
]),
Task::new(vec!["project1", "category1", "activity1", "task1"]),
Some("comment1"),
),
TimelogEntry::new_full(
Utc.ymd(2018, 7, 2).and_hms(18, 0, 0),
Task::new(vec![
"project2",
"category2",
"activity2",
"task2",
]),
Task::new(vec!["project2", "category2", "activity2", "task2"]),
Some("comment2"),
),
TimelogEntry::new_full(
Utc.ymd(2018, 7, 3).and_hms(2, 0, 0),
Task::new(vec![
"project3",
"category3",
"activity3",
"task3",
]),
Task::new(vec!["project3", "category3", "activity3", "task3"]),
Some("comment3"),
),
TimelogEntry::new_slack(Utc.ymd(2018, 7, 3).and_hms(10, 0, 0), Some("slack1 **")),
TimelogEntry::new_full(
Utc.ymd(2018, 7, 3).and_hms(10, 15, 0),
Task::new(vec![
"project1",
"category1",
"activity1",
"task1",
]),
Task::new(vec!["project1", "category1", "activity1", "task1"]),
Some("comment1"),
),
TimelogEntry::new_full(
Utc.ymd(2018, 7, 3).and_hms(18, 0, 0),
Task::new(vec![
"project2",
"category2",
"activity2",
"task2",
]),
Task::new(vec!["project2", "category2", "activity2", "task2"]),
Some("comment2"),
),
];
......@@ -129,35 +104,23 @@ mod test {
TimelogDay {
date: Date::from_utc(NaiveDate::from_ymd(2018, 7, 2), Utc),
entries: vec![
TimelogEntry::new_slack(Utc.ymd(2018, 7, 2).and_hms(10, 0, 0), Some("slack1 **")),
TimelogEntry::new_slack(
Utc.ymd(2018, 7, 2).and_hms(10, 0, 0),
Some("slack1 **"),
),
TimelogEntry::new_full(
Utc.ymd(2018, 7, 2).and_hms(10, 15, 0),
Task::new(vec![
"project1",
"category1",
"activity1",
"task1",
]),
Task::new(vec!["project1", "category1", "activity1", "task1"]),
Some("comment1"),
),
TimelogEntry::new_full(
Utc.ymd(2018, 7, 2).and_hms(18, 0, 0),
Task::new(vec![
"project2",
"category2",
"activity2",
"task2",
]),
Task::new(vec!["project2", "category2", "activity2", "task2"]),
Some("comment2"),
),
TimelogEntry::new_full(
Utc.ymd(2018, 7, 3).and_hms(2, 0, 0),
Task::new(vec![
"project3",
"category3",
"activity3",
"task3",
]),
Task::new(vec!["project3", "category3", "activity3", "task3"]),
Some("comment3"),
),
],
......@@ -165,25 +128,18 @@ mod test {
TimelogDay {
date: Date::from_utc(NaiveDate::from_ymd(2018, 7, 3), Utc),
entries: vec![
TimelogEntry::new_slack(Utc.ymd(2018, 7, 3).and_hms(10, 0, 0), Some("slack1 **")),
TimelogEntry::new_slack(
Utc.ymd(2018, 7, 3).and_hms(10, 0, 0),
Some("slack1 **"),
),
TimelogEntry::new_full(
Utc.ymd(2018, 7, 3).and_hms(10, 15, 0),
Task::new(vec![
"project1",
"category1",
"activity1",
"task1",
]),
Task::new(vec!["project1", "category1", "activity1", "task1"]),
Some("comment1"),
),
TimelogEntry::new_full(
Utc.ymd(2018, 7, 3).and_hms(18, 0, 0),
Task::new(vec![
"project2",
"category2",
"activity2",
"task2",
]),
Task::new(vec!["project2", "category2", "activity2", "task2"]),
Some("comment2"),
),
],
......@@ -203,22 +159,12 @@ mod test {
TimelogEntry::new_slack(Utc.ymd(2018, 7, 2).and_hms(10, 0, 0), Some("slack1 **")),
TimelogEntry::new_full(
Utc.ymd(2018, 7, 2).and_hms(10, 15, 0),
Task::new(vec![
"project1",
"category1",
"activity1",
"task1",
]),
Task::new(vec!["project1", "category1", "activity1", "task1"]),
Some("comment1"),
),
TimelogEntry::new_full(
Utc.ymd(2018, 7, 2).and_hms(18, 0, 0),
Task::new(vec![
"project2",
"category2",
"activity2",
"task2",
]),
Task::new(vec!["project2", "category2", "activity2", "task2"]),
Some("comment2"),
),
];
......@@ -229,22 +175,12 @@ mod test {
TimelogEntry::new_slack(Utc.ymd(2018, 7, 2).and_hms(10, 0, 0), Some("slack1 **")),
TimelogEntry::new_full(
Utc.ymd(2018, 7, 2).and_hms(10, 15, 0),
Task::new(vec![
"project1",
"category1",
"activity1",
"task1",
]),
Task::new(vec!["project1", "category1", "activity1", "task1"]),
Some("comment1"),
),
TimelogEntry::new_full(
Utc.ymd(2018, 7, 2).and_hms(18, 0, 0),
Task::new(vec![
"project2",
"category2",
"activity2",
"task2",
]),
Task::new(vec!["project2", "category2", "activity2", "task2"]),
Some("comment2"),
),
],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment