make clippy happy

This commit is contained in:
B. Petersen
2020-05-16 14:43:00 +02:00
committed by holger krekel
parent b864911e18
commit 3b2192a046

View File

@@ -243,7 +243,7 @@ impl Context {
let journal_mode = self
.sql
.query_get_value(self, "PRAGMA journal_mode;", rusqlite::NO_PARAMS)
.unwrap_or("unknown".to_string());
.unwrap_or_else(|| "unknown".to_string());
let e2ee_enabled = self.get_config_int(Config::E2eeEnabled);
let mdns_enabled = self.get_config_int(Config::MdnsEnabled);
let bcc_self = self.get_config_int(Config::BccSelf);