Skip to main content

Mountain/IPC/DevLog/
DedupState.rs

1#![allow(non_snake_case)]
2
3//! Consecutive-duplicate suppression buffer used by the
4//! `dev_log!` macro under `Trace=short`. Holds the last logged
5//! key + a repeat count; the macro flushes a `(xN)` tail when
6//! the key changes.
7
8use std::sync::Mutex;
9
10pub struct Struct {
11	pub LastKey:String,
12	pub Count:u64,
13}
14
15pub static DEDUP:Mutex<Struct> = Mutex::new(Struct { LastKey:String::new(), Count:0 });