clippy allow -> expect

This commit is contained in:
dasha_uwu
2026-01-22 21:48:41 +05:00
committed by Jason Volk
parent fbedd713ca
commit 0c9a3abb71
91 changed files with 126 additions and 166 deletions

View File

@@ -270,7 +270,7 @@ pub(crate) fn cache_size(config: &Config, base_size: u32, entity_size: usize) ->
cache_size_f64(config, f64::from(base_size), entity_size)
}
#[allow(
#[expect(
clippy::as_conversions,
clippy::cast_sign_loss,
clippy::cast_possible_truncation

View File

@@ -255,7 +255,7 @@ pub(super) fn configure(server: &Arc<Server>) -> (Vec<usize>, Vec<usize>, Vec<us
(topology, workers, queues)
}
#[allow(clippy::as_conversions, clippy::cast_precision_loss)]
#[expect(clippy::as_conversions, clippy::cast_precision_loss)]
fn update_stream_width(
server: &Arc<Server>,
num_queues: usize,

View File

@@ -183,7 +183,6 @@ impl<W: Write> ser::Serializer for &mut Serializer<'_, W> {
unhandled!("serialize Struct Variant not implemented")
}
#[allow(clippy::needless_borrows_for_generic_args)] // buggy
fn serialize_newtype_struct<T>(self, name: &'static str, value: &T) -> Result<Self::Ok>
where
T: Serialize + ?Sized,

View File

@@ -1,4 +1,4 @@
#![allow(clippy::needless_borrows_for_generic_args)]
#![expect(clippy::needless_borrows_for_generic_args)]
use std::fmt::Debug;