chore: mismatched_lifetime_syntaxes warning (#1999)

This commit is contained in:
Aaron Chen
2025-08-11 10:02:20 +08:00
committed by GitHub
parent 692f4458fb
commit 0e5adbe653

View File

@@ -543,7 +543,7 @@ impl AccessControl {
/// Returns the ASCII representation a domain name,
/// if conversion fails returns original string
fn convert_to_ascii(host: &str) -> Cow<str> {
fn convert_to_ascii(host: &str) -> Cow<'_, str> {
idna::domain_to_ascii(host)
.map(From::from)
.unwrap_or_else(|_| host.into())