Skip to content

Conversation

leaexplores
Copy link
Contributor

Hi,

This PR cleans up the calls of to_string in method calls.

We should favor the usage of to_owned as to_string uses the whole formatting machinery just to clone a string.

Using .to_owned() is lighter on resources.

Thanks for looking into it !

sfackler added a commit that referenced this pull request Sep 28, 2015
To_String() cleanup for to_owned on method calls
@sfackler sfackler merged commit 87f865d into sfackler:master Sep 28, 2015
@sfackler
Copy link
Owner

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