use ruma-identifiers-validation feature from our ruma

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-07-23 22:11:51 -04:00
parent ce0ca96df4
commit 30ad5da5f1
4 changed files with 17 additions and 21 deletions

View file

@ -57,7 +57,6 @@ lru-cache.workspace = true
rand.workspace = true
regex.workspace = true
reqwest.workspace = true
ruma-identifiers-validation.workspace = true
ruma.workspace = true
rustyline-async.workspace = true
rustyline-async.optional = true

View file

@ -252,7 +252,7 @@ async fn request_well_known(dest: &str) -> Result<Option<String>> {
.as_str()
.unwrap_or_default();
if ruma_identifiers_validation::server_name::validate(m_server).is_err() {
if ruma::identifiers_validation::server_name::validate(m_server).is_err() {
debug_error!("response content missing or invalid");
return Ok(None);
}