diff options
| author | Conrad Ludgate <conradludgate@gmail.com> | 2023-03-26 15:47:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-26 15:47:38 +0100 |
| commit | bb7f00dbef3bf4c7c00c1969cb0089de51bd9ba9 (patch) | |
| tree | 6ac9722a353f844c2896335d2617eb49a677b20f /src/command/client/search.rs | |
| parent | Update README.md (diff) | |
| download | atuin-bb7f00dbef3bf4c7c00c1969cb0089de51bd9ba9.zip | |
chore: use fork of skim (#803)
* use fuzzy-matcher instead of skim
switch to a search-engine abstraction
* fmt
* fix deprecated warnings
Diffstat (limited to 'src/command/client/search.rs')
| -rw-r--r-- | src/command/client/search.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command/client/search.rs b/src/command/client/search.rs index 50dfec10..c407eb08 100644 --- a/src/command/client/search.rs +++ b/src/command/client/search.rs @@ -14,9 +14,9 @@ use super::history::ListMode; mod cursor; mod duration; +mod engines; mod history_list; mod interactive; -mod skim_impl; pub use duration::{format_duration, format_duration_into}; #[allow(clippy::struct_excessive_bools)] @@ -87,7 +87,7 @@ pub struct Cmd { } impl Cmd { - pub async fn run(self, db: &mut impl Database, settings: &mut Settings) -> Result<()> { + pub async fn run(self, mut db: impl Database, settings: &mut Settings) -> Result<()> { if self.search_mode.is_some() { settings.search_mode = self.search_mode.unwrap(); } @@ -113,7 +113,7 @@ impl Cmd { self.after.clone(), self.limit, &self.query, - db, + &mut db, ) .await?; @@ -142,7 +142,7 @@ impl Cmd { self.after.clone(), self.limit, &self.query, - db, + &mut db, ) .await?; } |
