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 Rc::clone(&ptr) syntax instead of ptr.clone() #126

Merged
merged 1 commit into from
Nov 18, 2020

Conversation

cburgdorf
Copy link
Collaborator

@cburgdorf cburgdorf commented Nov 18, 2020

What was wrong?

We had mixed use of Rc<T> with some places using ptr.clone() and whereas others used Rc::clone(&ptr).

How was it fixed?

Change to use the idiomatic syntax preferred by the official Rust book.

Further reading:

rust-lang/rust#42137 (comment)
https://github.com/nical/rfcs/blob/rc-newref-clone/text/0000-rc-newref-clone.md

Change to use the idiomatic syntax preferred by the official
Rust book.
@cburgdorf cburgdorf merged commit 5de8db5 into ethereum:master Nov 18, 2020
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