various: auto-fix clippy warnings
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ia8f0b1ebd657bb9cdebef9d62413f45a6a6a6964
This commit is contained in:
parent
49545fdb6b
commit
b1f3b4b1ff
6 changed files with 8 additions and 0 deletions
|
|
@ -72,9 +72,11 @@ impl Node {
|
|||
})
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn id(&self) -> String {
|
||||
hex::encode(&self.public_key()[..8])
|
||||
}
|
||||
#[must_use]
|
||||
pub fn public_key(&self) -> [u8; 32] {
|
||||
self.signing_key.verifying_key().to_bytes()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue