mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
3a697af253
PR #2751 highlighted a problem we have where the variable names we use could collide with users. Rather than parse out when or not to use special names, and worry about people keeping that up to date through refactors, I globally renamed all variables by adding a `__clap_` prefix, which looks like what serde does to solve this problem. I audited the result with `cargo expand`. I didn't add any tests because any tests would be reactionary and would give us a false sense of protection since any new code could hit this with anything we do. Our best route for naming is consistency so people are likely to notice and copy. Fixes #2934 |
||
---|---|---|
.. | ||
derives | ||
utils | ||
attrs.rs | ||
dummies.rs | ||
lib.rs | ||
parse.rs |