aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/src/database.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2023-02-06 12:59:01 +0100
committerGitHub <noreply@github.com>2023-02-06 11:59:01 +0000
commit3abc96fafe052f3c68ac7d1ae18e4fafee8e1f34 (patch)
treefbcc50070db039bf681e6147617d457f2f34d86d /atuin-client/src/database.rs
parentFix CI build badge (#683) (diff)
downloadatuin-3abc96fafe052f3c68ac7d1ae18e4fafee8e1f34.zip
Try to make clippy happy 🥺 (#686)
* Try to make clippy happy 🥺 * Fmt * I missed one (can't run clippy locally on airport wifi...)
Diffstat (limited to 'atuin-client/src/database.rs')
-rw-r--r--atuin-client/src/database.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/atuin-client/src/database.rs b/atuin-client/src/database.rs
index 874c4407..d0e696c4 100644
--- a/atuin-client/src/database.rs
+++ b/atuin-client/src/database.rs
@@ -448,7 +448,7 @@ impl Database for Sqlite {
} else if let Some(term) = query_part.strip_prefix('\'') {
format!("{glob}{term}{glob}")
} else if is_inverse {
- format!("{glob}{term}{glob}", term = query_part)
+ format!("{glob}{query_part}{glob}")
} else {
query_part.split("").join(glob)
};