Skip to content

Commit 332ef29

Browse files
committed
fix: warning about unnecessary parentheses around closure body
1 parent 3285ce6 commit 332ef29

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

mithril-aggregator/src/database/record/signer_registration.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ impl From<SignerRegistrationRecord> for Signer {
6161
verification_key: other.verification_key.try_into().unwrap(),
6262
verification_key_signature: other
6363
.verification_key_signature
64-
.map(|k| (k.try_into().unwrap())),
65-
operational_certificate: other.operational_certificate.map(|o| (o.try_into().unwrap())),
64+
.map(|k| k.try_into().unwrap()),
65+
operational_certificate: other.operational_certificate.map(|o| o.try_into().unwrap()),
6666
kes_period: other.kes_period,
6767
}
6868
}
@@ -75,8 +75,8 @@ impl From<SignerRegistrationRecord> for SignerWithStake {
7575
verification_key: other.verification_key.try_into().unwrap(),
7676
verification_key_signature: other
7777
.verification_key_signature
78-
.map(|k| (k.try_into().unwrap())),
79-
operational_certificate: other.operational_certificate.map(|o| (o.try_into().unwrap())),
78+
.map(|k| k.try_into().unwrap()),
79+
operational_certificate: other.operational_certificate.map(|o| o.try_into().unwrap()),
8080
kes_period: other.kes_period,
8181
stake: other.stake.unwrap_or_default(),
8282
}

mithril-common/src/messages/message_parts/signer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl From<SignerWithStake> for SignerWithStakeMessagePart {
107107
.map(|k| k.try_into().unwrap()),
108108
operational_certificate: value
109109
.operational_certificate
110-
.map(|op_cert| (op_cert.try_into().unwrap())),
110+
.map(|op_cert| op_cert.try_into().unwrap()),
111111
kes_period: value.kes_period,
112112
stake: value.stake,
113113
}
@@ -230,7 +230,7 @@ impl From<Signer> for SignerMessagePart {
230230
.map(|k| k.try_into().unwrap()),
231231
operational_certificate: value
232232
.operational_certificate
233-
.map(|op_cert| (op_cert.try_into().unwrap())),
233+
.map(|op_cert| op_cert.try_into().unwrap()),
234234
kes_period: value.kes_period,
235235
}
236236
}

0 commit comments

Comments
 (0)