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

@@ -46,7 +46,7 @@ async fn test_maybe_send_stats() -> Result<()> {
r.get("contact_stats").unwrap(),
&serde_json::Value::Array(vec![])
);
assert_eq!(r.get("core_version").unwrap(), get_version_str());
assert_eq!(r.get("core_version").unwrap(), DC_VERSION_STR);
assert_eq!(maybe_send_stats(alice).await?, None);