8000 immutable 参照を mutable 参照にキャストしないようにする by koba-e964 · Pull Request #251 · frugalos/frugalos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

immutable 参照を mutable 参照にキャストしないようにする #251

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

Merged
merged 1 commit into from
Dec 6, 2019

Conversation

koba-e964
Copy link
Contributor

Types of changes

Please check one of the following:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • New release (merge to both master and develop!)

Description of changes

Behavior

変更なし

Purpose

https://gitter.im/frugalos/development?at=5d974e79b385bf2cc67147d8 のあたりの議論の結果として、 RendezvousNodes::calc_candidates が内部状態を変更しなくなり、&mut self ではなく &self を取るようになった。このため、get_ring で immutable 参照を強引に mutable 参照にする必要がなくなった。

Checklists

  • Run cargo fmt --all.
  • Run cargo clippy --all --all-targets.

@koba-e964 koba-e964 merged commit 3e67d10 into develop Dec 6, 2019
@koba-e964 koba-e964 deleted the fix/remove-ub branch December 6, 2019 11:15
@shinnya shinnya added this to the v0.17.0 milestone Dec 17, 2019
@shinnya shinnya mentioned this pull request Jan 10, 2020
4 tasks
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
0