diff --git a/build.rs b/build.rs index 69f872ba..78dd9347 100644 --- a/build.rs +++ b/build.rs @@ -7,9 +7,10 @@ fn main() { let path: PathBuf = [out_dir.clone(), "mod.rs".to_string()].iter().collect(); fs::write(path, "pub mod ttrpc;").unwrap(); + #[allow(clippy::needless_borrow)] protobuf_codegen_pure::Codegen::new() .out_dir(out_dir) - .inputs(["src/ttrpc.proto"]) + .inputs(&["src/ttrpc.proto"]) .include("src") .run() .expect("Codegen failed.");