Merge pull request #2352 from ldm0/all

Add --all-features for CI, fix build with debug feature.
This commit is contained in:
Pavan Kumar Sunkara 2021-02-18 20:39:43 +00:00 committed by GitHub
commit 0f92d5f2c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

@ -89,6 +89,12 @@ jobs:
with:
command: test
args: --target ${{ matrix.target }} --features "wrap_help yaml regex unstable"
- name: Check debug statement
uses: actions-rs/cargo@v1
if: matrix.features == 'all'
with:
command: check
args: --target ${{ matrix.target }} --features "wrap_help yaml regex unstable debug"
- name: Test release
uses: actions-rs/cargo@v1
if: matrix.features == 'release'

View file

@ -1349,7 +1349,10 @@ impl<'help, 'app> Parser<'help, 'app> {
if let Some(overrider) = self.app.find(name) {
let mut override_self = false;
for overridee in &overrider.overrides {
debug!("Parser::remove_overrides:iter:{:?} => {:?}", name, o);
debug!(
"Parser::remove_overrides:iter:{:?} => {:?}",
name, overrider
);
if *overridee == overrider.id {
override_self = true;
} else {
@ -1364,7 +1367,7 @@ impl<'help, 'app> Parser<'help, 'app> {
{
debug!(
"Parser::remove_overrides:iter:{:?}:iter:{:?}: self override",
name, o
name, overrider
);
self_override.push(overrider.id.clone());
}