chore: msrv 1.88 (#17782)

This commit is contained in:
Matthias Seitz
2025-08-10 17:51:26 +02:00
committed by GitHub
parent d8f9f05e2c
commit 5f0d33425e
20 changed files with 30 additions and 30 deletions

View File

@@ -449,7 +449,7 @@ struct OrderedBodiesResponse<B: Block> {
impl<B: Block> OrderedBodiesResponse<B> {
#[inline]
fn len(&self) -> usize {
const fn len(&self) -> usize {
self.resp.len()
}

View File

@@ -437,7 +437,7 @@ impl ChunkedFileReader {
/// Calculates the number of bytes to read from the chain file. Returns a tuple of the chunk
/// length and the remaining file length.
fn chunk_len(&self) -> u64 {
const fn chunk_len(&self) -> u64 {
let Self { chunk_byte_len, file_byte_len, .. } = *self;
let file_byte_len = file_byte_len + self.chunk.len() as u64;

View File

@@ -61,7 +61,7 @@ impl TestBodiesClient {
/// empty_response_mod == 0`.
pub(crate) fn should_respond_empty(&self) -> bool {
if let Some(empty_response_mod) = self.empty_response_mod {
self.times_requested.load(Ordering::Relaxed) % empty_response_mod == 0
self.times_requested.load(Ordering::Relaxed).is_multiple_of(empty_response_mod)
} else {
false
}