mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-08 12:34:43 +02:00
fix fmt
This commit is contained in:
parent
870afdbcf2
commit
095b3d1a4e
1 changed files with 6 additions and 2 deletions
|
|
@ -1208,8 +1208,12 @@ fn validate_config(cfg: &ConfigItems, on_update: bool) -> Result<(), Error> {
|
|||
}
|
||||
match icon_service_fallback.matches("{}").count() {
|
||||
1 => (), // nominal
|
||||
0 => err!(format!("Fallback Icon service URL `{icon_service_fallback}` has no placeholder \"{{}}\"")),
|
||||
_ => err!(format!("Fallback Icon service URL `{icon_service_fallback}` has more than one placeholder \"{{}}\"")),
|
||||
0 => {
|
||||
err!(format!("Fallback Icon service URL `{icon_service_fallback}` has no placeholder \"{{}}\""))
|
||||
}
|
||||
_ => {
|
||||
err!(format!("Fallback Icon service URL `{icon_service_fallback}` has more than one placeholder \"{{}}\""))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue