Fixing clippy issues (#418)

This commit is contained in:
Kevin Lewi
2026-01-22 15:37:21 -08:00
committed by GitHub
parent a85a7bea8f
commit 2dee6fbc01
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -44,6 +44,8 @@ yanked = "warn"
ignore = [ ignore = [
# dev-dependency # dev-dependency
"RUSTSEC-2024-0436", "RUSTSEC-2024-0436",
# bincode is unmaintained but only used as dev-dependency for tests
"RUSTSEC-2025-0141",
] ]
# Threshold for security vulnerabilities, any vulnerability with a CVSS score # Threshold for security vulnerabilities, any vulnerability with a CVSS score
# lower than the range specified will be ignored. Note that ignored advisories # lower than the range specified will be ignored. Note that ignored advisories
+2 -1
View File
@@ -87,7 +87,8 @@ pub enum ProtocolError<T = Infallible> {
InvalidLoginError, InvalidLoginError,
/// Error with serializing / deserializing protocol messages /// Error with serializing / deserializing protocol messages
SerializationError, SerializationError,
/// Invalid length for `name`: expected `len`, but is actually `actual_len`. /** Invalid length for `{name}`: expected {len}, actual {actual_len} */
#[allow(clippy::doc_markdown, unused_assignments)]
SizeError { SizeError {
/// name /// name
name: &'static str, name: &'static str,
+1
View File
@@ -243,6 +243,7 @@ where
serde(bound = "") serde(bound = "")
)] )]
#[derive(Clone, Debug, Eq, Hash, PartialEq, Zeroize)] #[derive(Clone, Debug, Eq, Hash, PartialEq, Zeroize)]
#[allow(unused_assignments)]
pub struct SerializedContext<'a> { pub struct SerializedContext<'a> {
length: GenericArray<u8, U2>, length: GenericArray<u8, U2>,
#[zeroize(skip)] #[zeroize(skip)]