aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/client/history.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2022-12-16 18:37:45 +0000
committerGitHub <noreply@github.com>2022-12-16 18:37:45 +0000
commit4c6a287f4d18161ed263bb37905edb2566f81245 (patch)
tree741c34c6fd700788b4d7b29a1b44a95d77cd9819 /src/command/client/history.rs
parentFix session history (#620) (diff)
downloadatuin-4c6a287f4d18161ed263bb37905edb2566f81245.zip
Switch to using ATUIN_LOG instead of RUST_LOG (#642)
* Switch to using ATUIN_LOG instead of RUST_LOG * Stop clippy complaining * I should know better - clippy is never happy :(
Diffstat (limited to 'src/command/client/history.rs')
-rw-r--r--src/command/client/history.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/client/history.rs b/src/command/client/history.rs
index 5c3f1726..19a3df0e 100644
--- a/src/command/client/history.rs
+++ b/src/command/client/history.rs
@@ -202,11 +202,11 @@ impl Cmd {
let history = match (session, cwd) {
(None, None) => db.list(settings.filter_mode, &context, None, false).await?,
(None, Some(cwd)) => {
- let query = format!("select * from history where cwd = '{}';", cwd);
+ let query = format!("select * from history where cwd = '{cwd}';");
db.query_history(&query).await?
}
(Some(session), None) => {
- let query = format!("select * from history where session = '{}';", session);
+ let query = format!("select * from history where session = '{session}';");
db.query_history(&query).await?
}
(Some(session), Some(cwd)) => {