mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 23:02:31 +00:00
Use proper cfg
This commit is contained in:
parent
329bfa9895
commit
3e1f6ed514
1 changed files with 5 additions and 6 deletions
|
@ -1435,13 +1435,12 @@ impl<'b> App<'b> {
|
|||
|
||||
self._derive_display_order();
|
||||
self._create_help_and_version();
|
||||
|
||||
// Perform expensive debug assertions
|
||||
debug_assert!({
|
||||
#[cfg(debug_assertions)]
|
||||
for a in self.args.args.iter() {
|
||||
self._arg_debug_asserts(a);
|
||||
}
|
||||
true
|
||||
});
|
||||
|
||||
let mut pos_counter = 1;
|
||||
for a in self.args.args.iter_mut() {
|
||||
|
|
Loading…
Reference in a new issue