Skip to content

Commit

Permalink
fix: ignore unwrap lint error in protoc genrated files
Browse files Browse the repository at this point in the history
  • Loading branch information
zsluedem committed Mar 29, 2023
1 parent 05682a4 commit b44a5de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ fn make_protos(protos: &[&str]) {
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
tonic_build::configure()
.server_mod_attribute("uopool", r#"#[allow(clippy::unwrap_used)]"#)
.server_mod_attribute("bundler", r#"#[allow(clippy::unwrap_used)]"#)
.file_descriptor_set_path(out_dir.join("descriptor.bin"))
.compile_with_config(config(), protos, &["./src/proto"])
.unwrap();
Expand Down

0 comments on commit b44a5de

Please sign in to comment.