cargo fmt

This commit is contained in:
B. Petersen
2019-10-04 00:20:15 +02:00
parent 477af413c6
commit 2317518e5e
10 changed files with 66 additions and 24 deletions

View File

@@ -79,7 +79,12 @@ impl Context {
let value = match key {
Config::Selfavatar => {
let rel_path = self.sql.get_raw_config(self, key);
rel_path.map(|p| dc_get_abs_path(self, &p).to_str().unwrap_or_default().to_string())
rel_path.map(|p| {
dc_get_abs_path(self, &p)
.to_str()
.unwrap_or_default()
.to_string()
})
}
Config::SysVersion => Some((&*DC_VERSION_STR).clone()),
Config::SysMsgsizeMaxRecommended => Some(format!("{}", 24 * 1024 * 1024 / 4 * 3)),