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

fix!: changed to simply move to cfgs field and add opt_cfgs method to Cmd #27

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

sttk
Copy link
Owner

@sttk sttk commented Jul 23, 2024

Because it's unnecessary to use std::mem::replace for setting cfgs field of Cmd, and a public field can be overridden.

src/lib.rs Outdated Show resolved Hide resolved
src/parse/parse_for.rs Outdated Show resolved Hide resolved
@sttk sttk merged commit 0f54c42 into main Jul 23, 2024
7 checks passed
@sttk sttk deleted the simply-move-to-cfgs-of-cmd branch July 23, 2024 16:12
@sttk sttk changed the title fix: changed to simply move to cfgs field and add opt_cfgs method to Cmd fix!: changed to simply move to cfgs field and add opt_cfgs method to Cmd Jul 23, 2024
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.

1 participant