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

@@ -108,11 +108,7 @@ impl Resolver {
Ok((conf, opts))
}
#[allow(
clippy::as_conversions,
clippy::cast_sign_loss,
clippy::cast_possible_truncation
)]
#[expect(clippy::as_conversions)]
fn configure_opts(server: &Arc<Server>, mut opts: ResolverOpts) -> ResolverOpts {
let config = &server.config;

View File

@@ -68,7 +68,7 @@ impl FedDest {
}
#[inline]
#[allow(clippy::string_slice)]
#[expect(clippy::string_slice)]
pub(crate) fn port(&self) -> Option<u16> {
match &self {
| Self::Literal(addr) => Some(addr.port()),

View File

@@ -26,11 +26,6 @@ type Resolving = MutexMap<OwnedServerName, ()>;
#[async_trait]
impl crate::Service for Service {
#[allow(
clippy::as_conversions,
clippy::cast_sign_loss,
clippy::cast_possible_truncation
)]
fn build(args: &crate::Args<'_>) -> Result<Arc<Self>> {
let cache = Cache::new(args);
Ok(Arc::new(Self {