aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/command/client/stats.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/turtle/src/command/client/stats.rs')
-rw-r--r--crates/turtle/src/command/client/stats.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/crates/turtle/src/command/client/stats.rs b/crates/turtle/src/command/client/stats.rs
index 98401cd3..17432bb2 100644
--- a/crates/turtle/src/command/client/stats.rs
+++ b/crates/turtle/src/command/client/stats.rs
@@ -3,11 +3,8 @@ use eyre::Result;
use interim::parse_date_string;
use time::{Duration, OffsetDateTime, Time};
-use crate::atuin_client::{
- database::{Database, current_context},
- settings::Settings,
- theme::Theme,
-};
+use crate::atuin_client::database::ClientSqlite;
+use crate::atuin_client::{database::current_context, settings::Settings, theme::Theme};
use crate::atuin_history::stats::{compute, pretty_print};
@@ -39,7 +36,12 @@ pub(crate) struct Cmd {
}
impl Cmd {
- pub(crate) async fn run(&self, db: &impl Database, settings: &Settings, theme: &Theme) -> Result<()> {
+ pub(crate) async fn run(
+ &self,
+ db: &ClientSqlite,
+ settings: &Settings,
+ theme: &Theme,
+ ) -> Result<()> {
let context = current_context().await?;
let words = if self.period.is_empty() {
String::from("all")