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.
callsites
1 parent a1cf1b8 commit 43891abCopy full SHA for 43891ab
console-subscriber/src/callsites.rs
@@ -23,7 +23,7 @@ impl<const MAX_CALLSITES: usize> Callsites<MAX_CALLSITES> {
23
}
24
25
let idx = self.len.fetch_add(1, Ordering::AcqRel);
26
- if idx <= MAX_CALLSITES {
+ if idx < MAX_CALLSITES {
27
// If there's still room in the callsites array, stick the address
28
// in there.
29
self.ptrs[idx]
0 commit comments