Add --all-features for CI, fix build with debug feature.

This commit is contained in:
ldm0 2021-02-17 03:58:36 +00:00
parent 2b45011c9b
commit 2d26f02605
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());
}