File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ use hickory_proto::rr::Name;
66use openssl:: pkey:: PKey ;
77use std:: collections:: HashSet ;
88use std:: io;
9+ use std:: ops:: Deref ;
910use std:: path:: Path ;
1011use std:: { sync:: Arc , time:: Duration } ;
1112use tracing:: { debug_span, instrument, Instrument } ;
@@ -146,11 +147,12 @@ pub async fn process_config_certificate(
146147 let mut need_renewal = false ;
147148 let days = config_cert. renewal_days_advance ;
148149 let today_plus_validity = openssl:: asn1:: Asn1Time :: days_from_now ( days) ?;
149- let mut missing_certs: HashSet < String > = config_cert. domains . iter ( ) . cloned ( ) . collect ( ) ;
150+ let mut missing_certs: HashSet < & str > =
151+ config_cert. domains . iter ( ) . map ( Deref :: deref) . collect ( ) ;
150152 for c in current_certs {
151153 for entry in c. subject_name ( ) . entries ( ) {
152154 if let Ok ( name) = entry. data ( ) . as_utf8 ( ) {
153- missing_certs. remove ( AsRef :: < str > :: as_ref ( & name) ) ;
155+ missing_certs. remove ( & name[ .. ] ) ;
154156 }
155157 }
156158 if let Some ( alt_names) = c. subject_alt_names ( ) {
You can’t perform that action at this time.
0 commit comments