diff --git a/src/end_entity.rs b/src/end_entity.rs index 8c0650a9..0507b65e 100644 --- a/src/end_entity.rs +++ b/src/end_entity.rs @@ -154,13 +154,10 @@ impl<'a> EndEntityCert<'a> { /// Requires the `alloc` default feature; i.e. this isn't available in /// `#![no_std]` configurations. #[cfg(feature = "alloc")] - pub fn verify_is_valid_for_at_least_one_dns_name<'names, Names>( + pub fn verify_is_valid_for_at_least_one_dns_name<'names>( &self, - dns_names: Names, - ) -> Result>, Error> - where - Names: Iterator>, - { + dns_names: impl Iterator>, + ) -> Result>, Error> { let result: Vec> = dns_names .filter(|n| self.verify_is_valid_for_dns_name(*n).is_ok()) .collect();