Skip to content

Commit

Permalink
Remove deref on an immutable reference
Browse files Browse the repository at this point in the history
Clippy emits:

  error: deref on an immutable reference

As suggested, do not deref.
  • Loading branch information
tcharding committed Dec 5, 2022
1 parent 125211d commit f2ba29f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ecdsa/serialized_signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl PartialEq for SerializedSignature {
impl AsRef<[u8]> for SerializedSignature {
#[inline]
fn as_ref(&self) -> &[u8] {
&*self
self
}
}

Expand Down

0 comments on commit f2ba29f

Please sign in to comment.