Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port 1161 fix to v3 #1198

Merged
merged 3 commits into from
Mar 4, 2018
Merged

Conversation

willmurphyscode
Copy link
Contributor

@willmurphyscode willmurphyscode commented Mar 1, 2018

Copy the fix from #1162 into
the v3 parser, and add a test to protect against regressions in the
expected behavior of example 22.

Note: I haven't been able to lint this - cargo build --features lints seems to fail on current nightly. I assume CI will tell me if I messed up linting, but I wanted to mention it.


This change is Reviewable

Copy the fix from clap-rs#1162 into
the v3 parser, and add a test to protect against regressions in the
expected behavior of example 22.
@mention-bot
Copy link

@willmurphyscode, thanks for your PR! By analyzing the history of the files in this pull request, we identified @kbknapp to be a potential reviewer.

@kbknapp
Copy link
Member

kbknapp commented Mar 3, 2018

@willmurphyscode to reproduce the failure compile with --no-default-features It's because I used vec_map directly somewhere (src/parser.rs:11), instead of the internal map facade (example in src/args/arg_builder/positional.rs:13).

This adds a keys method to the internal implementation of vec_map and
adds conditional compilation in the parser to make the parser compile
with or without the vec_map dependency.
@kbknapp kbknapp merged commit 1567d80 into clap-rs:v3-master Mar 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants