From 2db5f6f97539f85c9ee4fc80008b4b9fe64febf9 Mon Sep 17 00:00:00 2001 From: Geoffroy Couprie Date: Thu, 30 Dec 2021 17:52:26 +0100 Subject: [PATCH] clippy --- src/token/mod.rs | 1 - src/token/unverified.rs | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/token/mod.rs b/src/token/mod.rs index 4fa83e6f..62f9938c 100644 --- a/src/token/mod.rs +++ b/src/token/mod.rs @@ -230,7 +230,6 @@ impl Biscuit { BiscuitBuilder::new(root, symbols) } - /// creates a new token, using a provided CSPRNG /// /// the public part of the root keypair must be used for verification diff --git a/src/token/unverified.rs b/src/token/unverified.rs index 56fa5e30..bc79d803 100644 --- a/src/token/unverified.rs +++ b/src/token/unverified.rs @@ -173,9 +173,7 @@ impl UnverifiedBiscuit { /// if a token is generated with the same keys and the same content, /// those identifiers will stay the same pub fn revocation_identifiers(&self) -> Vec> { - let mut res = Vec::new(); - - res.push(self.container.authority.signature.to_bytes().to_vec()); + let mut res = vec![self.container.authority.signature.to_bytes().to_vec()]; for block in self.container.blocks.iter() { res.push(block.signature.to_bytes().to_vec());