Skip to content

Commit fb131df

Browse files
committed
ci(adb): use debug_assert to not trigger panic_in_result_fn
1 parent 0dc61c8 commit fb131df

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/core/adb.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,7 @@ impl PmCommand {
348348
.map(|p_ln| {
349349
debug_assert!(p_ln.starts_with(PACK_PREFIX));
350350
let p = &p_ln[PACK_PREFIX.len()..];
351-
#[cfg(debug_assertions)]
352-
assert!(PackageId::new(p.into()).is_some() || p == "android");
351+
debug_assert!(PackageId::new(p.into()).is_some() || p == "android");
353352
String::from(p)
354353
})
355354
.collect()

0 commit comments

Comments
 (0)