From 68c5ca9ecedb6001c61e933f2b7069c2e677213d Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Mon, 15 Feb 2021 09:07:49 +0000 Subject: use database trait instead of sqlite impl (#10) small improvements --- src/command/history.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command/history.rs') diff --git a/src/command/history.rs b/src/command/history.rs index e40af4d6..5d2a8050 100644 --- a/src/command/history.rs +++ b/src/command/history.rs @@ -3,7 +3,7 @@ use std::env; use eyre::Result; use structopt::StructOpt; -use crate::local::database::{Database, Sqlite}; +use crate::local::database::Database; use crate::local::history::History; #[derive(StructOpt)] @@ -41,7 +41,7 @@ fn print_list(h: &[History]) { } impl Cmd { - pub fn run(&self, db: &mut Sqlite) -> Result<()> { + pub fn run(&self, db: &mut impl Database) -> Result<()> { match self { Self::Start { command: words } => { let command = words.join(" "); -- cgit v1.3.1