clippy allow -> expect
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#![allow(clippy::needless_borrows_for_generic_args)]
|
||||
#![expect(clippy::needless_borrows_for_generic_args)]
|
||||
|
||||
use std::fmt::Debug;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user