From b5845bc3a1e9869389414f13a6dee2acd8cb0c2c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Apr 2021 10:59:07 +0000 Subject: Bump rusqlite from 0.24.2 to 0.25.0 (#30) * Bump rusqlite from 0.24.2 to 0.25.0 Bumps [rusqlite](https://github.com/rusqlite/rusqlite) from 0.24.2 to 0.25.0. - [Release notes](https://github.com/rusqlite/rusqlite/releases) - [Changelog](https://github.com/rusqlite/rusqlite/blob/master/Changelog.md) - [Commits](https://github.com/rusqlite/rusqlite/compare/v0.24.2...v0.25.0) Signed-off-by: dependabot[bot] * Fixes for new rusqlite (mostly the new Params trait) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ellie Huxtable --- src/command/history.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/command') diff --git a/src/command/history.rs b/src/command/history.rs index af8aef7d..05aed4b9 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, QueryParam}; +use crate::local::database::Database; use crate::local::history::History; #[derive(StructOpt)] @@ -96,12 +96,11 @@ impl Cmd { let history = match params { (false, false) => db.list()?, - (true, false) => db.query(QUERY_SESSION, &[QueryParam::Text(session)])?, - (false, true) => db.query(QUERY_DIR, &[QueryParam::Text(cwd)])?, - (true, true) => db.query( - QUERY_SESSION_DIR, - &[QueryParam::Text(cwd), QueryParam::Text(session)], - )?, + (true, false) => db.query(QUERY_SESSION, &[session.as_str()])?, + (false, true) => db.query(QUERY_DIR, &[cwd.as_str()])?, + (true, true) => { + db.query(QUERY_SESSION_DIR, &[cwd.as_str(), session.as_str()])? + } }; print_list(&history); -- cgit v1.3.1