From 2e4f0271fc50a8347d8c7525c66d3237a425fcfa Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Tue, 23 Apr 2024 15:08:56 +0200 Subject: [PATCH] chore: Fix clippy nightly warnings --- neqo-crypto/src/aead_null.rs | 2 -- neqo-crypto/src/constants.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/neqo-crypto/src/aead_null.rs b/neqo-crypto/src/aead_null.rs index 2d5656de73..6fcb72871f 100644 --- a/neqo-crypto/src/aead_null.rs +++ b/neqo-crypto/src/aead_null.rs @@ -4,8 +4,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![cfg(feature = "disable-encryption")] - use std::fmt; use crate::{ diff --git a/neqo-crypto/src/constants.rs b/neqo-crypto/src/constants.rs index 76db972290..daef3d3c56 100644 --- a/neqo-crypto/src/constants.rs +++ b/neqo-crypto/src/constants.rs @@ -27,7 +27,7 @@ pub const TLS_EPOCH_APPLICATION_DATA: Epoch = 3_u16; macro_rules! remap_enum { { $t:ident: $s:ty { $( $n:ident = $v:path ),+ $(,)? } } => { pub type $t = $s; - $( pub const $n: $t = $v as $t; )+ + $(#[allow(clippy::cast_possible_truncation)] pub const $n: $t = $v as $t; )+ }; { $t:ident: $s:ty => $e:ident { $( $n:ident = $v:ident ),+ $(,)? } } => { remap_enum!{ $t: $s { $( $n = $e::$v ),+ } }