mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-29 21:40:27 +00:00
indexmap: add another previously-failing assert.
This commit is contained in:
parent
a4bfe3e655
commit
92b72b1334
@ -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
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user