mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
chore: mismatched_lifetime_syntaxes warning (#1999)
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user