Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/metrics/fn_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ impl fmt::Display for Stats {
}

impl Stats {
#[doc(hidden)]
pub fn merge(&mut self, _other: &Stats) {}
/// Merges a second `NArgs` metric into the first one
pub fn merge(&mut self, other: &Stats) {
self.nargs += other.nargs;
}

/// Returns the `NArgs` metric value
pub fn nargs(&self) -> f64 {
Expand Down