Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jstuczyn committed Oct 25, 2024
1 parent ce57875 commit 64e55d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nym-api/nym-api-requests/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ impl MixNodeBondAnnotated {
.sphinx_key
.parse()
.map_err(|_| MalformedNodeBond::InvalidX25519Key)?,
role: role,
role,
supported_roles: DeclaredRoles {
mixnode: true,
entry: false,
Expand Down Expand Up @@ -345,7 +345,7 @@ impl GatewayBondAnnotated {
.sphinx_key
.parse()
.map_err(|_| MalformedNodeBond::InvalidX25519Key)?,
role: role,
role,
supported_roles: DeclaredRoles {
mixnode: false,
entry: true,
Expand Down Expand Up @@ -827,7 +827,7 @@ impl NymNodeDescription {
// we can't use the declared roles, we have to take whatever was provided in the contract.
// why? say this node COULD operate as an exit, but it might be the case the contract decided
// to assign it an ENTRY role only. we have to use that one instead.
role: role,
role,
supported_roles: self.description.declared_role,
entry,
performance,
Expand Down

0 comments on commit 64e55d5

Please sign in to comment.