Skip to content

Commit 284ba8c

Browse files
committed
clippy::vec_init_then_push
the `push` used to be conditional
1 parent cee3a6a commit 284ba8c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/handlers/prioritize.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ pub(super) async fn handle_command(
1111
event: &Event,
1212
_: PrioritizeCommand,
1313
) -> anyhow::Result<()> {
14-
let mut labels = vec![];
15-
labels.push(github::Label {
14+
let labels = vec![github::Label {
1615
name: config.label.clone(),
17-
});
16+
}];
1817
event
1918
.issue()
2019
.unwrap()

0 commit comments

Comments
 (0)