mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 05:56:31 +03:00
cargo fmt
This commit is contained in:
@@ -132,11 +132,11 @@ impl Context {
|
||||
|
||||
pub fn set_ui_config(&self, key: &str, value: Option<&str>) -> Result<(), &str> {
|
||||
if !key.starts_with("ui.") {
|
||||
return Err("Ui config key has to be prefixed with 'ui.'")
|
||||
return Err("Ui config key has to be prefixed with 'ui.'");
|
||||
}
|
||||
|
||||
if self.sql.set_config(self, key, value).is_err() {
|
||||
return Err("Sql error")
|
||||
return Err("Sql error");
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user