From 2024884f49334e7eaf64adc425da77b773204b42 Mon Sep 17 00:00:00 2001 From: Mark Wotton Date: Thu, 9 Sep 2021 17:46:46 +0700 Subject: Reordered fuzzy search (#179) * add test demonstrating problem * add a reordered fuzzy-search mode that presents shorter matches first, rather than using strict chronological ordering. * fix warnings, refactor interface to minspan slightly --- Cargo.lock | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index abb5959f..8a25e3d5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -138,6 +138,7 @@ dependencies = [ "indicatif", "itertools", "log", + "minspan", "parse_duration", "rand 0.8.3", "reqwest", @@ -1168,6 +1169,12 @@ dependencies = [ "unicase", ] +[[package]] +name = "minspan" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1269a17ac308ae0b906ec1b0ff8062fd0c82f18cc2956faa367302ec3380f4e8" + [[package]] name = "mio" version = "0.7.11" -- cgit v1.3.1