Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfo committed Sep 25, 2024
1 parent 9c70e62 commit 6f233e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn main() -> std::io::Result<()> {
if which("protoc").is_err() {
const PROTO: &str = r#"#[derive(Clone, PartialEq, ::prost::Message)] pub struct Entity { #[prost(uint32, tag = "1")] pub id: u32, #[prost(string, tag = "2")] pub name: ::prost::alloc::string::String,}"#;
let out_path = Path::new(&env::var("OUT_DIR").unwrap()).join("example.rs");
File::create(out_path)?.write(PROTO.as_bytes())?;
File::create(out_path)?.write_all(PROTO.as_bytes())?;
return Ok(());
}
prost_build::compile_protos(&["examples/example.proto"], &["examples/"])?;
Expand Down

0 comments on commit 6f233e0

Please sign in to comment.