[repo] Release: version 0.2.0 (client and host); const assertions for the applist cap (clippy)

This commit is contained in:
2026-12-04 13:31:17 +01:00
parent 1fca3abd49
commit 1f95cc8db4
7 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -508,7 +508,7 @@ fn applist_cap_is_reachable_with_full_apps() {
.map(|i| format!("<App><AppTitle>g</AppTitle><ID>{i}</ID><IsHdrSupported>1</IsHdrSupported></App>"))
.collect::<String>()
};
assert!(1 + 4 * MAX_APPS <= MAX_XML_ELEMENTS, "root + 4 per app = {} elements", 1 + 4 * MAX_APPS);
const { assert!(4 * MAX_APPS < MAX_XML_ELEMENTS, "root + 4 per app must fit the element cap") };
let apps = http::parse_app_list(&xml_root(200, &full(MAX_APPS))).expect("a full list at the app cap");
assert_eq!(apps.len(), MAX_APPS);
assert!(apps.iter().all(|a| a.hdr_supported));