mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-04-18 07:57:59 +02:00
Apply cargo fmt changes
This commit is contained in:
parent
fce0fa9c57
commit
c2ff4dd3b2
@ -212,14 +212,16 @@ async fn patch_network(
|
||||
let merged = DbRemote {
|
||||
url: match new_url {
|
||||
Setting::Set(new_url) => {
|
||||
if !new_url.starts_with("http://") && !new_url.starts_with("https://") {
|
||||
if !new_url.starts_with("http://")
|
||||
&& !new_url.starts_with("https://")
|
||||
{
|
||||
return Err(ResponseError::from_msg(
|
||||
format!("in .remotes.{key}.url: error from Url::parse"),
|
||||
meilisearch_types::error::Code::InvalidNetworkUrl,
|
||||
));
|
||||
}
|
||||
new_url
|
||||
},
|
||||
}
|
||||
Setting::Reset => {
|
||||
return Err(ResponseError::from_msg(
|
||||
format!(
|
||||
|
Loading…
x
Reference in New Issue
Block a user