Skip to content

Commit 028fa59

Browse files
committed
hotfix(adb): use actual cfg instead of debug_assert
1 parent 9fbf8cf commit 028fa59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core/adb.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@ impl ACommand {
150150
// typically 5 allocs.
151151
// ideally 0, if we didn't use `lines`.
152152
.map(|(i, ln)| {
153-
debug_assert!(match i {
153+
// DO NOT "REFACTOR" TO `debug_assert`!
154+
// it's not the same!
155+
#[cfg(debug_assertions)]
156+
assert!(match i {
154157
0 => TRIPLE.is_match(ln),
155158
1 => DISTRO.is_match(ln),
156159
2 =>

0 commit comments

Comments
 (0)