Skip to content

Commit

Permalink
Revert "ttrpc: Fix a clippy warning"
Browse files Browse the repository at this point in the history
Fixes: #205

This reverts commit cf0112d.

Signed-off-by: Tim Zhang <[email protected]>
  • Loading branch information
Tim-Zhang committed Jul 19, 2023
1 parent 9bef9c6 commit 02e2ef6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 02e2ef6

Please sign in to comment.