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

Use truncate in clone_from #186

Merged
merged 1 commit into from May 29, 2021
Merged

Conversation

@a1phyr
Copy link
Contributor

@a1phyr a1phyr commented May 24, 2021

This is more efficient because it calls drop_in_place on the tail instead on poping each element separately.

@bluss
Copy link
Owner

@bluss bluss commented May 29, 2021

Thanks!

@bluss bluss merged commit dfceb6d into bluss:master May 29, 2021
5 checks passed
5 checks passed
@github-actions
tests (1.51.0, serde, false)
Details
@github-actions
tests (stable, false)
Details
@github-actions
tests (beta, serde, false)
Details
@github-actions
tests (nightly, serde, false)
Details
@github-actions
miri
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants