fix(stream-server): remove useless vec! in build.rs
Clippy `-D warnings` rejected `vec![...]` for a fixed-size array literal used only as `.iter().all(...)`. Replacing with a stack array unblocks rust-ci and stream-ci jobs which both run `cargo clippy --all-targets`.
This commit is contained in:
parent
fcdf7cc386
commit
f54cbd71f4
1 changed files with 3 additions and 3 deletions
|
|
@ -6,13 +6,13 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
// Vérifier si protoc est disponible
|
||||
// Si les fichiers générés existent déjà, on peut continuer sans protoc
|
||||
let generated_dir = std::path::Path::new("src/generated");
|
||||
let required_files = vec![
|
||||
let required_files = [
|
||||
generated_dir.join("veza.stream.rs"),
|
||||
generated_dir.join("veza.common.auth.rs"),
|
||||
];
|
||||
|
||||
|
||||
let all_generated_exist = required_files.iter().all(|p| p.exists());
|
||||
|
||||
|
||||
if all_generated_exist {
|
||||
// Les fichiers générés existent, on peut continuer sans protoc
|
||||
println!("cargo:warning=Using pre-generated protobuf files. protoc not required.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue