summaryrefslogtreecommitdiffstats
path: root/atuin/src/command/client/stats.rs
diff options
context:
space:
mode:
Diffstat (limited to 'atuin/src/command/client/stats.rs')
-rw-r--r--atuin/src/command/client/stats.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/atuin/src/command/client/stats.rs b/atuin/src/command/client/stats.rs
index 08145027..625c6beb 100644
--- a/atuin/src/command/client/stats.rs
+++ b/atuin/src/command/client/stats.rs
@@ -12,7 +12,7 @@ use atuin_client::{
};
use time::{Duration, OffsetDateTime, Time};
-#[derive(Parser)]
+#[derive(Parser, Debug)]
#[command(infer_subcommands = true)]
pub struct Cmd {
/// compute statistics for the specified period, leave blank for statistics since the beginning
@@ -73,7 +73,7 @@ fn compute_stats(history: &[History], count: usize) -> Result<()> {
}
impl Cmd {
- pub async fn run(&self, db: &mut impl Database, settings: &Settings) -> Result<()> {
+ pub async fn run(&self, db: &impl Database, settings: &Settings) -> Result<()> {
let context = current_context();
let words = if self.period.is_empty() {
String::from("all")