Skip to content

Commit a1fe43f

Browse files
authored
xaes-256-gcm: enable and fix workspace level lints (#850)
1 parent 8cf876f commit a1fe43f

3 files changed

Lines changed: 14 additions & 6 deletions

File tree

xaes-256-gcm/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ arrayvec = ["aead/arrayvec", "aes-gcm/arrayvec"]
3333
getrandom = ["aes-gcm/getrandom"]
3434
rand_core = ["aead/rand_core", "aes-gcm/rand_core"]
3535

36+
[lints]
37+
workspace = true
38+
3639
[package.metadata.docs.rs]
3740
all-features = true
38-
rustdoc-args = ["--cfg", "docsrs"]

xaes-256-gcm/LICENSE-MIT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2024 The RustCrypto Project Developers
1+
Copyright (c) 2024-2026 The RustCrypto Project Developers
22

33
Permission is hereby granted, free of charge, to any
44
person obtaining a copy of this software and associated

xaes-256-gcm/src/lib.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
66
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg"
77
)]
8-
#![deny(unsafe_code)]
9-
#![warn(missing_docs, rust_2018_idioms)]
108

119
//! # Usage
1210
//!
@@ -36,14 +34,16 @@ pub use aead;
3634
pub use aes;
3735
pub use aes_gcm;
3836

39-
use core::ops::{Div, Mul};
40-
4137
use aead::{
4238
AeadCore, AeadInOut, Error, KeyInit, KeySizeUser, TagPosition, array::Array, inout::InOutBuf,
4339
};
4440
use aes::Aes256;
4541
use aes_gcm::Aes256Gcm;
4642
use cipher::{BlockCipherEncrypt, BlockSizeUser, consts::U2};
43+
use core::{
44+
fmt,
45+
ops::{Div, Mul},
46+
};
4747

4848
/// XAES-256-GCM
4949
#[derive(Clone)]
@@ -172,3 +172,9 @@ impl Xaes256Gcm {
172172
key
173173
}
174174
}
175+
176+
impl fmt::Debug for Xaes256Gcm {
177+
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
178+
f.debug_struct("Xaes256Gcm").finish_non_exhaustive()
179+
}
180+
}

0 commit comments

Comments
 (0)