]> git.lizzy.rs Git - rust.git/commit
Auto merge of #44278 - Binero:master, r=BurntSushi
authorbors <bors@rust-lang.org>
Thu, 28 Sep 2017 18:52:49 +0000 (18:52 +0000)
committerbors <bors@rust-lang.org>
Thu, 28 Sep 2017 18:52:49 +0000 (18:52 +0000)
commit3c96d40d326b64f6a50f4a902051fe71c4acdc92
tree5ff7baf61d9aa339663351e92aec01b3c9d21015
parent688a8583912a305f14ebc8bc21a2dd3cd3c912b0
parentd3de465dc85638a6a77298638ebbbfab04b1844d
Auto merge of #44278 - Binero:master, r=BurntSushi

Allow replacing HashMap entries

This is an obvious API hole. At the moment the only way to retrieve an entry from a `HashMap` is to get an entry to it, remove it, and then insert a new entry. This PR allows entries to be replaced.
src/libstd/collections/hash/map.rs