Skip to content

Commit

Permalink
new toolchain alignments
Browse files Browse the repository at this point in the history
  • Loading branch information
zvolin committed Nov 29, 2024
1 parent 3ee5f21 commit 55fbfdb
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions grpc/tests/tonic.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use celestia_grpc::types::auth::Account;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion node/src/block_ranges.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub(crate) trait BlockRangeExt {

pub(crate) struct BlockRangeDisplay<'a>(&'a RangeInclusive<u64>);

impl<'a> Display for BlockRangeDisplay<'a> {
impl Display for BlockRangeDisplay<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}-{}", self.0.start(), self.0.end())
}
Expand Down
2 changes: 1 addition & 1 deletion node/src/store/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl From<ExtendedHeader> for VerifiedExtendedHeaders {
}
}

impl<'a> From<&'a ExtendedHeader> for VerifiedExtendedHeaders {
impl From<&'_ ExtendedHeader> for VerifiedExtendedHeaders {
fn from(value: &ExtendedHeader) -> Self {
Self(vec![value.to_owned()])
}
Expand Down
1 change: 1 addition & 0 deletions node/tests/graceful_stop.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use std::path::Path;
Expand Down
1 change: 1 addition & 0 deletions node/tests/header_ex.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use std::time::Duration;
Expand Down
1 change: 1 addition & 0 deletions node/tests/node.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use std::time::Duration;
Expand Down
1 change: 1 addition & 0 deletions node/tests/shwap.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use std::{collections::HashSet, time::Duration};
Expand Down
1 change: 1 addition & 0 deletions rpc/tests/blob.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use std::cmp::Ordering;
Expand Down
1 change: 1 addition & 0 deletions rpc/tests/header.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use celestia_rpc::prelude::*;
Expand Down
1 change: 1 addition & 0 deletions rpc/tests/p2p.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
#![cfg(all(not(target_arch = "wasm32"), feature = "p2p"))]
use crate::utils::client::{new_test_client, AuthLevel};
use celestia_rpc::prelude::*;
Expand Down
1 change: 1 addition & 0 deletions rpc/tests/share.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use celestia_rpc::prelude::*;
Expand Down
1 change: 1 addition & 0 deletions rpc/tests/state.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use crate::utils::{random_bytes, random_ns};
Expand Down
1 change: 1 addition & 0 deletions rpc/tests/wasm.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
#![cfg(all(target_arch = "wasm32", feature = "wasm-bindgen"))]

use celestia_rpc::client::Client;
Expand Down
2 changes: 1 addition & 1 deletion types/src/data_availability_header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl DataAvailabilityHeader {
proofs.push(MerkleProof::new(idx as usize, &all_roots)?.0);
let row = self
.row_root(idx)
.ok_or_else(|| Error::IndexOutOfRange(idx as usize, self.row_roots.len()))?;
.ok_or(Error::IndexOutOfRange(idx as usize, self.row_roots.len()))?;
row_roots.push(row);
}

Expand Down

0 comments on commit 55fbfdb

Please sign in to comment.