diff options
| author | Jakub Panek <me@panekj.dev> | 2022-04-28 17:53:59 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-28 18:53:59 +0100 |
| commit | 93ab4e7842ac3c3a37e8d423ae57ef3e7d151b7b (patch) | |
| tree | c910b1bb047a540c361f6cb6f8e403f1b83b925a /atuin-client/src/ordering.rs | |
| parent | Bump axum from 0.5.3 to 0.5.4 (#355) (diff) | |
| download | atuin-93ab4e7842ac3c3a37e8d423ae57ef3e7d151b7b.zip | |
ignore JetBrains IDEs, tidy-up imports (#348)
* ignore JB IDEs
* tidy-up imports
* add rustfmt config
Diffstat (limited to 'atuin-client/src/ordering.rs')
| -rw-r--r-- | atuin-client/src/ordering.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/atuin-client/src/ordering.rs b/atuin-client/src/ordering.rs index 0bb12c6a..4e5ec84c 100644 --- a/atuin-client/src/ordering.rs +++ b/atuin-client/src/ordering.rs @@ -1,7 +1,7 @@ -use super::history::History; -use super::settings::SearchMode; use minspan::minspan; +use super::{history::History, settings::SearchMode}; + pub fn reorder_fuzzy(mode: SearchMode, query: &str, res: Vec<History>) -> Vec<History> { match mode { SearchMode::Fuzzy => reorder(query, |x| &x.command, res), |
