summaryrefslogtreecommitdiffstats
path: root/src/command/history.rs
diff options
context:
space:
mode:
authorConrad Ludgate <conradludgate@gmail.com>2021-02-15 09:07:49 +0000
committerGitHub <noreply@github.com>2021-02-15 09:07:49 +0000
commit68c5ca9ecedb6001c61e933f2b7069c2e677213d (patch)
treeca04351dd4309e77b1091f9a7ce10a7b4ae10ade /src/command/history.rs
parent80815d9eea86e53b51f9e764d4dcceb590d5a844 (diff)
use database trait instead of sqlite impl (#10)
small improvements
Diffstat (limited to 'src/command/history.rs')
-rw-r--r--src/command/history.rs4
1 files changed, 2 insertions, 2 deletions
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(" ");