add expected! macro to checked math expression suite
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -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]));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user