Fixing clippy issues (#418)
This commit is contained in:
@@ -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
@@ -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,
|
||||||
|
|||||||
@@ -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)]
|
||||||
|
|||||||
Reference in New Issue
Block a user