Loading libs/debugstore/rust/src/core.rs +7 −2 Original line number Original line Diff line number Diff line Loading @@ -48,7 +48,7 @@ impl DebugStore { /// /// /// This constant is used as a part of the debug store's data format, /// This constant is used as a part of the debug store's data format, /// allowing for version tracking and compatibility checks. /// allowing for version tracking and compatibility checks. const ENCODE_VERSION: u32 = 2; const ENCODE_VERSION: u32 = 3; /// Creates a new instance of `DebugStore` with specified event limit and maximum delay. /// Creates a new instance of `DebugStore` with specified event limit and maximum delay. fn new() -> Self { fn new() -> Self { Loading Loading @@ -123,9 +123,11 @@ impl DebugStore { impl fmt::Display for DebugStore { impl fmt::Display for DebugStore { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { // Write the debug store header information let uptime_now = uptimeMillis(); let uptime_now = uptimeMillis(); write!(f, "{},{},{}::", Self::ENCODE_VERSION, self.event_store.len(), uptime_now)?; write!(f, "{},{},{}::", Self::ENCODE_VERSION, self.event_store.len(), uptime_now)?; // Join events with a separator write!( write!( f, f, "{}", "{}", Loading @@ -136,7 +138,10 @@ impl fmt::Display for DebugStore { acc.push_str(&event.to_string()); acc.push_str(&event.to_string()); acc acc }) }) ) )?; // Write the debug store footer write!(f, ";;") } } } } Loading Loading
libs/debugstore/rust/src/core.rs +7 −2 Original line number Original line Diff line number Diff line Loading @@ -48,7 +48,7 @@ impl DebugStore { /// /// /// This constant is used as a part of the debug store's data format, /// This constant is used as a part of the debug store's data format, /// allowing for version tracking and compatibility checks. /// allowing for version tracking and compatibility checks. const ENCODE_VERSION: u32 = 2; const ENCODE_VERSION: u32 = 3; /// Creates a new instance of `DebugStore` with specified event limit and maximum delay. /// Creates a new instance of `DebugStore` with specified event limit and maximum delay. fn new() -> Self { fn new() -> Self { Loading Loading @@ -123,9 +123,11 @@ impl DebugStore { impl fmt::Display for DebugStore { impl fmt::Display for DebugStore { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { // Write the debug store header information let uptime_now = uptimeMillis(); let uptime_now = uptimeMillis(); write!(f, "{},{},{}::", Self::ENCODE_VERSION, self.event_store.len(), uptime_now)?; write!(f, "{},{},{}::", Self::ENCODE_VERSION, self.event_store.len(), uptime_now)?; // Join events with a separator write!( write!( f, f, "{}", "{}", Loading @@ -136,7 +138,10 @@ impl fmt::Display for DebugStore { acc.push_str(&event.to_string()); acc.push_str(&event.to_string()); acc acc }) }) ) )?; // Write the debug store footer write!(f, ";;") } } } } Loading