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

Assign map instead of using mem::replace. #337

Merged
merged 1 commit into from
May 2, 2020

Conversation

Dirbaio
Copy link
Member

@Dirbaio Dirbaio commented Apr 26, 2020

This fixes build on latest nightly. The cause of the breakage
is this commit:

rust-lang/rust@7c4ca59

which added a #[must_use = "if you don't need the old value, you
can just assign the new value directly"] hint to mem::replace.

This fixes build on latest nightly. The cause of the breakage
is this commit:

rust-lang/rust@7c4ca59

which added a #[must_use = "if you don't need the old value, you
can just assign the new value directly"] hint to mem::replace.
@whitequark whitequark merged commit ffb5020 into smoltcp-rs:master May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants