refactor: turn DC_VERSION_STR into &str

This commit is contained in:
link2xt
2025-12-17 23:46:29 +00:00
committed by l
parent 71ee32b8b7
commit b1883c802b
6 changed files with 8 additions and 16 deletions

View File

@@ -504,7 +504,7 @@ impl Context {
.into_owned()
})
}
Config::SysVersion => Some((*constants::DC_VERSION_STR).clone()),
Config::SysVersion => Some(constants::DC_VERSION_STR.to_string()),
Config::SysMsgsizeMaxRecommended => Some(format!("{RECOMMENDED_FILE_SIZE}")),
Config::SysConfigKeys => Some(get_config_keys_string()),
_ => self.sql.get_raw_config(key.as_ref()).await?,