Use proper cfg

This commit is contained in:
CreepySkeleton 2020-03-09 23:42:14 +03:00
parent 329bfa9895
commit 3e1f6ed514

View file

@ -1435,13 +1435,12 @@ impl<'b> App<'b> {
self._derive_display_order(); self._derive_display_order();
self._create_help_and_version(); self._create_help_and_version();
// Perform expensive debug assertions // Perform expensive debug assertions
debug_assert!({ #[cfg(debug_assertions)]
for a in self.args.args.iter() { for a in self.args.args.iter() {
self._arg_debug_asserts(a); self._arg_debug_asserts(a);
} }
true
});
let mut pos_counter = 1; let mut pos_counter = 1;
for a in self.args.args.iter_mut() { for a in self.args.args.iter_mut() {