various: auto-fix clippy warnings

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ia8f0b1ebd657bb9cdebef9d62413f45a6a6a6964
This commit is contained in:
raf 2026-05-11 13:22:05 +03:00
commit b1f3b4b1ff
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
6 changed files with 8 additions and 0 deletions

View file

@ -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()
}