add expected! macro to checked math expression suite
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
2709995f84
commit
3d4b0f10a5
3 changed files with 29 additions and 11 deletions
|
@ -66,7 +66,7 @@ impl Service {
|
|||
.enumerate()
|
||||
{
|
||||
let bucket: usize = short.try_into()?;
|
||||
let bucket: usize = validated!(bucket % NUM_BUCKETS)?;
|
||||
let bucket: usize = validated!(bucket % NUM_BUCKETS);
|
||||
buckets[bucket].insert((short, starting_events[i]));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue