Skip to content

Commit 2dee6fb

Browse files
authored
Fixing clippy issues (#418)
1 parent a85a7be commit 2dee6fb

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

deny.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ yanked = "warn"
4444
ignore = [
4545
# dev-dependency
4646
"RUSTSEC-2024-0436",
47+
# bincode is unmaintained but only used as dev-dependency for tests
48+
"RUSTSEC-2025-0141",
4749
]
4850
# Threshold for security vulnerabilities, any vulnerability with a CVSS score
4951
# lower than the range specified will be ignored. Note that ignored advisories

src/errors.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ pub enum ProtocolError<T = Infallible> {
8787
InvalidLoginError,
8888
/// Error with serializing / deserializing protocol messages
8989
SerializationError,
90-
/// Invalid length for `name`: expected `len`, but is actually `actual_len`.
90+
/** Invalid length for `{name}`: expected {len}, actual {actual_len} */
91+
#[allow(clippy::doc_markdown, unused_assignments)]
9192
SizeError {
9293
/// name
9394
name: &'static str,

src/key_exchange/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ where
243243
serde(bound = "")
244244
)]
245245
#[derive(Clone, Debug, Eq, Hash, PartialEq, Zeroize)]
246+
#[allow(unused_assignments)]
246247
pub struct SerializedContext<'a> {
247248
length: GenericArray<u8, U2>,
248249
#[zeroize(skip)]

0 commit comments

Comments
 (0)