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());