-
Notifications
You must be signed in to change notification settings - Fork 682
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
Add Builder::whitelist_var
; deprecate Builder::whitelisted_var
#986
Comments
Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the If you intend to work on this issue, then add |
@highfive: assign me |
Hey @aeleos! Thanks for your interest in working on this issue. It's now assigned to you! |
@aeleos don't hesitate to ping me if you have any questions :) |
@fitzgen I do have one question, is there any recommended place to put the old deprecated function? I am thinking right next to it is probably best, but at the bottom could also work. |
@fitzgen I lied I do have another question, I ended up with this code
The compiler said that I didn't need mut self on the deprecated function, and just self was fine. It compiles but it strikes me as odd, does it make sense to you or is there a problem I am not seeing |
Right next to it is fine.
There is no problem you're not seeing. To call a method that takes |
@fitzgen ah thanks for the info. I created a PR, hopefully I did it correctly. |
Make whitelisted_var consistant with CLI flags Closes #986 This is my first time contributing to rust so hopefully I did everything right, otherwise let me know.
The CLI flag is
--whitelist-var
, so we should be consistent and remove the "ed" from the builder method.Builder::whitelisted_var
toBuilder::whitelist_var
Builder::whitelisted_var
that delegates towhitelist_var
whitelisted_var
as#[deprecated = "use whitelist_var instead"]
The text was updated successfully, but these errors were encountered: