Skip to content

Commit

Permalink
chore: fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbinth committed Jul 4, 2024
1 parent 6e1870b commit 49ab04c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/proto/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use miette::IntoDiagnostic;
use prost::Message;

/// Generates Rust protobuf bindings from .proto files in the root directory.
///
///
/// This is done only if BUILD_PROTO environment variable is set to `1` to avoid running the script
/// on crates.io where repo-level .proto files are not available.
fn main() -> miette::Result<()> {
Expand All @@ -13,7 +13,7 @@ fn main() -> miette::Result<()> {

// skip this build script in BUILD_PROTO environment variable is not set to `1`
if env::var("BUILD_PROTO").unwrap_or("0".to_string()) == "0" {
return Ok(())
return Ok(());
}

// Compute the directory of the `proto` definitions
Expand Down
6 changes: 3 additions & 3 deletions crates/rpc-proto/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const DOC_COMMENT: &str =
// ================================================================================================

/// Copies .proto files to the local directory and re-builds src/proto_files.rs file.
///
///
/// This is done only if BUILD_PROTO environment variable is set to `1` to avoid running the script
/// on crates.io where repo-level .proto files are not available.
fn main() -> io::Result<()> {
Expand All @@ -27,7 +27,7 @@ fn main() -> io::Result<()> {

// skip this build script in BUILD_PROTO environment variable is not set to `1`
if env::var("BUILD_PROTO").unwrap_or("0".to_string()) == "0" {
return Ok(())
return Ok(());
}

// copy all .proto files into this crate. all these files need to be local to the crate to
Expand Down Expand Up @@ -81,4 +81,4 @@ fn copy_proto_files() -> io::Result<()> {
}

Ok(())
}
}

0 comments on commit 49ab04c

Please sign in to comment.