Skip to content

Commit

Permalink
chore: derive Default;pub use structs
Browse files Browse the repository at this point in the history
  • Loading branch information
SichangHe committed Oct 9, 2024
1 parent 371be3f commit 04b5899
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsphere_vv8_log/src/aggregating.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

#[pub_fields]
#[derive(Debug, Clone)]
#[derive(Clone, Debug, Default)]
pub struct RecordAggregate {
scripts: HashMap<i32, ScriptAggregate>,
current_script_id: i32,
Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions jsphere_vv8_log/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use std::{
path::Path,
};

pub use aggregating::{ApiCall, ApiType, ScriptAggregate, ScriptInjectionType, ScriptName};
pub use js_values::JSValue;
pub use log_files::{read_logs, LogFile, LogFileInfo};
pub use log_records::{LogRecord, LogRecordErr, ID_UNSURE};
Expand Down

0 comments on commit 04b5899

Please sign in to comment.