Skip to content

Commit

Permalink
fix lint warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele committed Dec 14, 2023
1 parent a4a102c commit f79bdca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/commitments/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ impl Message {

pub fn commitment_type(&self) -> u16 {
match self {
&Message::UpdateClient(_) => MESSAGE_TYPE_UPDATE_CLIENT,
&Message::VerifyMembership(_) => MESSAGE_TYPE_STATE,
Message::UpdateClient(_) => MESSAGE_TYPE_UPDATE_CLIENT,
Message::VerifyMembership(_) => MESSAGE_TYPE_STATE,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion modules/commitments/src/message/verify_membership.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl Display for VerifyMembershipMessage {
"VerifyMembership(prefix: {:?}, path: {}, value: {}, height: {}, state_id: {})",
self.prefix,
self.path,
self.value.map_or("None".to_string(), |v| hex::encode(&v)),
self.value.map_or("None".to_string(), hex::encode),
self.height,
self.state_id,
)
Expand Down

0 comments on commit f79bdca

Please sign in to comment.