Rename elided_named_lifetimes to mismatched_lifetime_syntaxes.

Reapply is_multiple_of().

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-07-07 02:21:17 +00:00
parent e9a441fb6e
commit 79ee7838e7
2 changed files with 6 additions and 2 deletions

View File

@@ -460,7 +460,6 @@ pub async fn save_state(
}
#[implement(Service)]
#[allow(clippy::manual_is_multiple_of)]
#[tracing::instrument(skip(self), level = "debug", name = "get")]
async fn get_statediff(&self, shortstatehash: ShortStateHash) -> Result<StateDiff> {
const BUFSIZE: usize = size_of::<ShortStateHash>();
@@ -479,7 +478,7 @@ async fn get_statediff(&self, shortstatehash: ShortStateHash) -> Result<StateDif
.ok()
.take_if(|parent| *parent != 0);
debug_assert!(value.len() % STRIDE == 0, "value not aligned to stride");
debug_assert!(value.len().is_multiple_of(STRIDE), "value not aligned to stride");
let _num_values = value.len() / STRIDE;
let mut add_mode = true;