Fixing clippy issues (#418)
This commit is contained in:
@@ -44,6 +44,8 @@ yanked = "warn"
|
||||
ignore = [
|
||||
# dev-dependency
|
||||
"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
|
||||
# lower than the range specified will be ignored. Note that ignored advisories
|
||||
|
||||
+2
-1
@@ -87,7 +87,8 @@ pub enum ProtocolError<T = Infallible> {
|
||||
InvalidLoginError,
|
||||
/// Error with serializing / deserializing protocol messages
|
||||
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 {
|
||||
/// name
|
||||
name: &'static str,
|
||||
|
||||
@@ -243,6 +243,7 @@ where
|
||||
serde(bound = "")
|
||||
)]
|
||||
#[derive(Clone, Debug, Eq, Hash, PartialEq, Zeroize)]
|
||||
#[allow(unused_assignments)]
|
||||
pub struct SerializedContext<'a> {
|
||||
length: GenericArray<u8, U2>,
|
||||
#[zeroize(skip)]
|
||||
|
||||
Reference in New Issue
Block a user