Skip to content

Commit

Permalink
Remove some lifetimes that aren't required (#10057)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Dec 25, 2023
1 parent 5c97027 commit 2dd00a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rust/cryptography-x509-verification/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ impl<'a, 'chain> NameChain<'a, 'chain> {

pub type Chain<'c> = Vec<Certificate<'c>>;

pub fn verify<'a, 'chain, B: CryptoOps>(
leaf: &'a Certificate<'chain>,
pub fn verify<'chain, B: CryptoOps>(
leaf: &Certificate<'chain>,
intermediates: impl IntoIterator<Item = Certificate<'chain>>,
policy: &Policy<'_, B>,
store: &'a Store<'chain>,
store: &Store<'chain>,
) -> Result<Chain<'chain>, ValidationError> {
let builder = ChainBuilder::new(intermediates.into_iter().collect(), policy, store);

Expand Down

0 comments on commit 2dd00a1

Please sign in to comment.