clippy allow -> expect
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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()),
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user