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

Improve builder::str::inner::Inner::into_string implementation #4711

Conversation

aleksanderkrauze
Copy link
Contributor

Since Inner::into_string already takes ownership of self we can avoid unnecessary copy and allocation by moving Box<str> and using its implementation of Into<String>.

Since `Inner::into_string` already takes ownership of `self` we can
avoid unnecessary copy and allocation by moving `Box<str>` and using
its implementation of `Into<String>`.
@epage epage merged commit 62da8f9 into clap-rs:master Feb 15, 2023
@epage
Copy link
Member

epage commented Feb 15, 2023

Thanks!

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.

None yet

2 participants