Skip to content

Commit

Permalink
fix docs and deprecated stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
oxarbitrage committed Oct 2, 2024
1 parent 3f424e1 commit 830640c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions zebra-chain/src/work/u256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![allow(clippy::all)]
#![allow(clippy::range_plus_one)]
#![allow(clippy::fallible_impl_from)]
#![allow(missing_docs)]

use uint::construct_uint;

Expand Down
2 changes: 1 addition & 1 deletion zebra-grpc/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ where
let service = ScannerRPC { scan_service };
let reflection_service = tonic_reflection::server::Builder::configure()
.register_encoded_file_descriptor_set(crate::scanner::FILE_DESCRIPTOR_SET)
.build()
.build_v1()
.unwrap();

let tcp_listener = tokio::net::TcpListener::bind(listen_addr).await?;
Expand Down
2 changes: 1 addition & 1 deletion zebra-rpc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.type_attribute(".", "#[derive(serde::Deserialize, serde::Serialize)]")
.file_descriptor_set_path(out_dir.unwrap().join("indexer_descriptor.bin"))
.compile(&["proto/indexer.proto"], &[""])?;
.compile_protos(&["proto/indexer.proto"], &[""])?;
}

Ok(())
Expand Down
2 changes: 1 addition & 1 deletion zebra-rpc/src/indexer/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ where

let reflection_service = tonic_reflection::server::Builder::configure()
.register_encoded_file_descriptor_set(crate::indexer::FILE_DESCRIPTOR_SET)
.build()
.build_v1()
.unwrap();

tracing::info!("Trying to open indexer RPC endpoint at {}...", listen_addr,);
Expand Down
2 changes: 1 addition & 1 deletion zebrad/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn main() {
// so we can derive `Eq` as well as the default generated `PartialEq` derive.
// This fixes `clippy::derive_partial_eq_without_eq` warnings.
.message_attribute(".", "#[derive(Eq)]")
.compile(
.compile_protos(
&["tests/common/lightwalletd/proto/service.proto"],
&["tests/common/lightwalletd/proto"],
)
Expand Down

0 comments on commit 830640c

Please sign in to comment.