We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Into<String>
ToString::to_string
Strings
Partly a question if there's any reason why the API requires owned strings for constructors and such.
.add_scope(Scope::new("read".to_string())) .add_scope(Scope::new("write".to_string()))
Could then become:
.add_scope(Scope::new("read")) .add_scope(Scope::new("write"))
And the method signature would still make it clear that an allocation will take place.
This also applies to the oath2 crate.
oath2
The text was updated successfully, but these errors were encountered:
See ramosbugs/oauth2-rs#248. I'd be open to the constructor methods accepting impl Into<String> in both crates for better ergonomics.
impl Into<String>
Sorry, something went wrong.
Cool cool :) Might take a look at it when I have the time.
Successfully merging a pull request may close this issue.
Partly a question if there's any reason why the API requires owned strings for constructors and such.
Could then become:
And the method signature would still make it clear that an allocation will take place.
This also applies to the
oath2
crate.The text was updated successfully, but these errors were encountered: