mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
Apply cargo fmt changes
This commit is contained in:
parent
fce0fa9c57
commit
c2ff4dd3b2
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue