fix(ecstore): silence two dead_code warnings left on main (#6153)

This commit is contained in:
Zhengchao An
2026-08-16 22:42:45 +08:00
committed by GitHub
parent 1862112d0c
commit 3272730c13
3 changed files with 6 additions and 3 deletions
+1
View File
@@ -1375,6 +1375,7 @@ pub fn conv_part_err_to_int(err: &Option<Error>) -> usize {
}
}
#[allow(dead_code, reason = "asserted by this file's tests (backlog#1823)")]
pub fn has_part_err(part_errs: &[usize]) -> bool {
part_errs.iter().any(|err| *err != CHECK_PART_SUCCESS)
}