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 strategy pattern example #241

Merged
merged 1 commit into from
Feb 25, 2021
Merged

Conversation

pickfire
Copy link
Contributor

Reduce unnecessary String creation

Reduce unnecessary String creation
Comment on lines +76 to +77
buf.pop(); // remove extra , at the end
buf.push(']');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering if we could do replace but I don't think there is a safe and easy to do it.

@MarcoIeni MarcoIeni merged commit e3ed513 into rust-unofficial:master Feb 25, 2021
@MarcoIeni
Copy link
Collaborator

Thanks!

@pickfire pickfire deleted the patch-1 branch February 26, 2021 17:02
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