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

style: explicitly use Arc::clone #1236

Merged
merged 1 commit into from
Oct 18, 2022

Conversation

mvanschellebeeck
Copy link
Contributor

The Rust book recommends Arc::clone over just .clone() to highlight the fact that this doesn't perform a deep copy the way other types' implementations do.

@shadows-withal shadows-withal merged commit 572dd2e into rust-lang:main Oct 18, 2022
@shadows-withal
Copy link
Member

@all-contributors please add @mvanschellebeeck for content

@allcontributors
Copy link
Contributor

@diannasoreil

I've put up a pull request to add @mvanschellebeeck! 🎉

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