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:
@@ -856,6 +856,7 @@ unused-qualifications = "warn"
|
|||||||
|
|
||||||
## some sadness
|
## some sadness
|
||||||
elided_named_lifetimes = "allow" # TODO!
|
elided_named_lifetimes = "allow" # TODO!
|
||||||
|
mismatched_lifetime_syntaxes = "allow" # TODO!
|
||||||
let_underscore_drop = "allow"
|
let_underscore_drop = "allow"
|
||||||
missing_docs = "allow"
|
missing_docs = "allow"
|
||||||
# cfgs cannot be limited to expected cfgs or their de facto non-transitive/opt-in use-case e.g.
|
# cfgs cannot be limited to expected cfgs or their de facto non-transitive/opt-in use-case e.g.
|
||||||
@@ -871,6 +872,10 @@ variant_size_differences = "allow"
|
|||||||
# we check nightly clippy lints
|
# we check nightly clippy lints
|
||||||
unknown_lints = "allow"
|
unknown_lints = "allow"
|
||||||
|
|
||||||
|
# rust claims elided_named_lifetimes has been replaced by
|
||||||
|
# mismatched_lifetime_syntaxes but it actually has not.
|
||||||
|
renamed_and_removed_lints = "allow"
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
#
|
#
|
||||||
# Clippy lints
|
# Clippy lints
|
||||||
|
|||||||
@@ -460,7 +460,6 @@ pub async fn save_state(
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[implement(Service)]
|
#[implement(Service)]
|
||||||
#[allow(clippy::manual_is_multiple_of)]
|
|
||||||
#[tracing::instrument(skip(self), level = "debug", name = "get")]
|
#[tracing::instrument(skip(self), level = "debug", name = "get")]
|
||||||
async fn get_statediff(&self, shortstatehash: ShortStateHash) -> Result<StateDiff> {
|
async fn get_statediff(&self, shortstatehash: ShortStateHash) -> Result<StateDiff> {
|
||||||
const BUFSIZE: usize = size_of::<ShortStateHash>();
|
const BUFSIZE: usize = size_of::<ShortStateHash>();
|
||||||
@@ -479,7 +478,7 @@ async fn get_statediff(&self, shortstatehash: ShortStateHash) -> Result<StateDif
|
|||||||
.ok()
|
.ok()
|
||||||
.take_if(|parent| *parent != 0);
|
.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 _num_values = value.len() / STRIDE;
|
||||||
|
|
||||||
let mut add_mode = true;
|
let mut add_mode = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user