Skip to content

Commit

Permalink
chore: Fix clippy nightly warnings (#1853)
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert authored Apr 29, 2024
1 parent 17c5895 commit b18a614
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions neqo-crypto/src/aead_null.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down
2 changes: 1 addition & 1 deletion neqo-crypto/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ),+ } }
Expand Down

0 comments on commit b18a614

Please sign in to comment.