mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-16 05:36:50 +00:00
clippy: add must_use attribute
This commit is contained in:
1 parent
bcd4f80149
commit
3dd984eff9
2 files changed
+5
No files matched your search
@@ -62,14 +62,17 @@ impl crate::Service for Service {
|
||||
|
||||
#[implement(Service)]
|
||||
#[inline]
|
||||
#[must_use]
|
||||
pub fn keypair(&self) -> &Ed25519KeyPair { &self.keypair }
|
||||
|
||||
#[implement(Service)]
|
||||
#[inline]
|
||||
#[must_use]
|
||||
pub fn active_key_id(&self) -> &ServerSigningKeyId { self.active_verify_key().0 }
|
||||
|
||||
#[implement(Service)]
|
||||
#[inline]
|
||||
#[must_use]
|
||||
pub fn active_verify_key(&self) -> (&ServerSigningKeyId, &VerifyKey) {
|
||||
debug_assert!(self.verify_keys.len() <= 1, "more than one active verify_key");
|
||||
self.verify_keys
|
||||
|
||||
Reference in new issue
Block a user