Skip to content

Commit

Permalink
fix: clippy issues in celestia-tendermint
Browse files Browse the repository at this point in the history
  • Loading branch information
zvolin committed Jan 9, 2024
1 parent 08b61e0 commit 0ca3faf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tendermint/src/chain/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl Id {

/// Get the chain ID as a raw bytes.
pub fn as_bytes(&self) -> &[u8] {
self.0.as_str().as_bytes()
self.0.as_bytes()
}
}

Expand Down
3 changes: 1 addition & 2 deletions tendermint/src/crypto/ed25519/signing_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ impl TryFrom<SigningKey> for ed25519_consensus::SigningKey {
type Error = Error;

fn try_from(src: SigningKey) -> Result<Self, Error> {
ed25519_consensus::SigningKey::try_from(src.0)
.map_err(|_| Error::invalid_key("malformed Ed25519 private key".into()))
Ok(ed25519_consensus::SigningKey::from(src.0))
}
}

0 comments on commit 0ca3faf

Please sign in to comment.