mirror of
https://github.com/bolucat/Archive.git
synced 2025-11-03 00:54:00 +08:00
Update On Mon Aug 11 20:44:01 CEST 2025
This commit is contained in:
@@ -134,7 +134,7 @@ bytes = "1.7"
|
||||
byte_string = "1.0"
|
||||
byteorder = "1.5"
|
||||
rand = { version = "0.9", features = ["small_rng"] }
|
||||
rocksdb = { version = "0.23", optional = true }
|
||||
rocksdb = { version = "0.24", optional = true }
|
||||
|
||||
futures = "0.3"
|
||||
tokio = { version = "1.38", features = [
|
||||
|
||||
@@ -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