Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Dec 30, 2021
1 parent 99db68c commit 2db5f6f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/token/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/token/unverified.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vec<u8>> {
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());
Expand Down

0 comments on commit 2db5f6f

Please # to comment.