From 6097aad9db0065d712175fb51cbe588dd2d68e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven=20H=C3=A9=20=28S=C4=ABch=C3=A0ng=29?= Date: Tue, 8 Oct 2024 17:11:53 -0700 Subject: [PATCH] chore: derive Default;pub use structs --- jsphere_vv8_log/src/aggregating.rs | 4 ++-- jsphere_vv8_log/src/lib.rs | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/jsphere_vv8_log/src/aggregating.rs b/jsphere_vv8_log/src/aggregating.rs index 42a87a3..ab4482f 100644 --- a/jsphere_vv8_log/src/aggregating.rs +++ b/jsphere_vv8_log/src/aggregating.rs @@ -1,7 +1,7 @@ use super::*; #[pub_fields] -#[derive(Debug, Clone)] +#[derive(Clone, Debug, Default)] pub struct RecordAggregate { scripts: HashMap, current_script_id: i32, @@ -162,7 +162,7 @@ impl RecordAggregate { /// A script that was executed and its aggregate information. #[pub_fields] -#[derive(Debug, Clone)] +#[derive(Clone, Debug, Default)] pub struct ScriptAggregate { /// Line number in the log file where the script's context appears. line: usize, diff --git a/jsphere_vv8_log/src/lib.rs b/jsphere_vv8_log/src/lib.rs index 781330e..ca85d1c 100644 --- a/jsphere_vv8_log/src/lib.rs +++ b/jsphere_vv8_log/src/lib.rs @@ -10,6 +10,9 @@ use std::{ path::Path, }; +pub use aggregating::{ + ApiCall, ApiType, RecordAggregate, ScriptAggregate, ScriptInjectionType, ScriptName, +}; pub use js_values::JSValue; pub use log_files::{read_logs, LogFile, LogFileInfo}; pub use log_records::{LogRecord, LogRecordErr, ID_UNSURE};