Skip to content

Commit

Permalink
fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
DolceTriade committed Jan 3, 2024
1 parent 1c3c5ce commit 4606be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blade/db/postgres/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl state::DB for Postgres {
.filter(schema::testartifacts::dsl::invocation_id.eq(id))
.load(&mut self.conn)?
.into_iter().for_each(|a: models::TestArtifact| {
let v = test_artifacts.entry(a.test_run_id.clone()).or_insert(Vec::new());
let v = test_artifacts.entry(a.test_run_id.clone()).or_default();
v.push(a);
});
let test_runs = test_runs.grouped_by(&tests);
Expand Down

0 comments on commit 4606be9

Please sign in to comment.