Skip to content

Conversation

Dandandan
Copy link
Contributor

It is more generic to accept a &str than a String in an API, and avoids having to convert a the string to a String when not needed, avoiding a copy.

@nickolay nickolay merged commit d32df52 into apache:master Jun 3, 2020
@nickolay
Copy link
Contributor

nickolay commented Jun 3, 2020

Good catch! 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.

2 participants