Reintroduce a basic highlight display

This commit is contained in:
Clément Renault
2020-01-16 14:24:45 +01:00
parent 3912d1ec4b
commit 00336c5154
5 changed files with 23 additions and 386 deletions

View File

@ -53,7 +53,8 @@ impl Operation {
}
fn phrase2(id: QueryId, prefix: bool, (left, right): (&str, &str)) -> Operation {
Operation::Query(Query { id, prefix, kind: QueryKind::Phrase(vec![left.to_owned(), right.to_owned()]) })
let kind = QueryKind::Phrase(vec![left.to_owned(), right.to_owned()]);
Operation::Query(Query { id, prefix, kind })
}
}