ci(adb): use debug_assert to not trigger panic_in_result_fn

This commit is contained in:
Rudxain 2025-08-13 19:11:39 -04:00
commit fb131df206
No known key found for this signature in database
GPG key ID: 0DAC837DDEF8E96C

View file

@ -348,8 +348,7 @@ impl PmCommand {
.map(|p_ln| {
debug_assert!(p_ln.starts_with(PACK_PREFIX));
let p = &p_ln[PACK_PREFIX.len()..];
#[cfg(debug_assertions)]
assert!(PackageId::new(p.into()).is_some() || p == "android");
debug_assert!(PackageId::new(p.into()).is_some() || p == "android");
String::from(p)
})
.collect()