Fix the vec_init_then_push clippy lint

This commit is contained in:
Andreas Rammhold 2021-05-16 18:09:01 +02:00 committed by Cole Helbling
parent a91c6c5b12
commit ba9efad152
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C

View file

@ -157,6 +157,8 @@ fn result_to_check(result: &LegacyBuildResult, timestamp: DateTime<Utc>) -> Chec
));
}
// Allow the clippy violation for improved readability
#[allow(clippy::vec_init_then_push)]
let text: String = if !result.output.is_empty() {
let mut reply: Vec<String> = vec![];