Skip to content

Commit 0a1b5e4

Browse files
committed
Do not use & for pattern match arms
Clippy emits: warning: you don't need to add `&` to all patterns Remove the reference on match arms.
1 parent be1a4ee commit 0a1b5e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/descriptor/key.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ pub enum SinglePubKey {
7373
impl fmt::Display for DescriptorSecretKey {
7474
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
7575
match self {
76-
&DescriptorSecretKey::Single(ref sk) => {
76+
DescriptorSecretKey::Single(ref sk) => {
7777
maybe_fmt_master_id(f, &sk.origin)?;
7878
sk.key.fmt(f)?;
7979
Ok(())
8080
}
81-
&DescriptorSecretKey::XPrv(ref xprv) => {
81+
DescriptorSecretKey::XPrv(ref xprv) => {
8282
maybe_fmt_master_id(f, &xprv.origin)?;
8383
xprv.xkey.fmt(f)?;
8484
fmt_derivation_path(f, &xprv.derivation_path)?;

0 commit comments

Comments
 (0)