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 6701e33 commit 58ab9c1Copy full SHA for 58ab9c1
src/cargo/util/counter.rs
@@ -12,7 +12,7 @@ pub struct MetricsCounter<const N: usize> {
12
impl<const N: usize> MetricsCounter<N> {
13
/// Creates a new counter with an initial value.
14
pub fn new(init: usize, init_at: Instant) -> Self {
15
- debug_assert!(N > 0, "number of slots must be greater than zero");
+ assert!(N > 0, "number of slots must be greater than zero");
16
Self {
17
slots: [(init, init_at); N],
18
index: 0,
0 commit comments