indexmap: add another previously-failing assert.

This commit is contained in:
Dario Nieuwenhuis 2023-10-31 02:22:49 +01:00
parent a4bfe3e655
commit 92b72b1334
2 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
- Fixed a `dropping_references` warning in `LinearMap`.
- Fixed IndexMap entry API returning wrong slot after an insert on vacant entry. (#360)
### Removed

View File

@ -1469,7 +1469,7 @@ mod tests {
panic!("Entry found before insert");
}
Entry::Vacant(v) => {
v.insert(i).unwrap();
assert_eq!(i, *v.insert(i).unwrap());
}
}
}