Skip to content

Commit

Permalink
refactor: Remove superfluous vec! to comply with clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
RedEtherbloom committed Apr 16, 2024
1 parent e6dbb4d commit 3b27e1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3963,7 +3963,7 @@ mod tests {

let mut app = TaskwarriorTui::new("next", false).await.unwrap();
let task = app.task_by_id(11).unwrap();
let tags = vec!["finance", "UNBLOCKED", "PENDING", "TAGGED", "UDA"]
let tags = ["finance", "UNBLOCKED", "PENDING", "TAGGED", "UDA"]
.iter()
.map(ToString::to_string)
.collect::<Vec<String>>();
Expand All @@ -3982,7 +3982,7 @@ mod tests {
app.update(true).await.unwrap();

let task = app.task_by_id(11).unwrap();
let tags = vec!["next", "finance", "UNBLOCKED", "PENDING", "TAGGED", "UDA"]
let tags = ["next", "finance", "UNBLOCKED", "PENDING", "TAGGED", "UDA"]
.iter()
.map(ToString::to_string)
.collect::<Vec<String>>();
Expand All @@ -3994,7 +3994,7 @@ mod tests {
app.update(true).await.unwrap();

let task = app.task_by_id(11).unwrap();
let tags = vec!["finance", "UNBLOCKED", "PENDING", "TAGGED", "UDA"]
let tags = ["finance", "UNBLOCKED", "PENDING", "TAGGED", "UDA"]
.iter()
.map(ToString::to_string)
.collect::<Vec<String>>();
Expand Down

0 comments on commit 3b27e1a

Please sign in to comment.