We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4bfe3e commit 92b72b1Copy full SHA for 92b72b1
CHANGELOG.md
@@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
43
### Fixed
44
45
- Fixed a `dropping_references` warning in `LinearMap`.
46
+- Fixed IndexMap entry API returning wrong slot after an insert on vacant entry. (#360)
47
48
### Removed
49
src/indexmap.rs
@@ -1469,7 +1469,7 @@ mod tests {
1469
panic!("Entry found before insert");
1470
}
1471
Entry::Vacant(v) => {
1472
- v.insert(i).unwrap();
+ assert_eq!(i, *v.insert(i).unwrap());
1473
1474
1475
0 commit comments