feat: Replace the linked-hash-map dependency by indexmap

This commit is contained in:
Clément Renault
2019-09-04 14:53:16 +02:00
parent f6ff79085e
commit ee6a54fe4c
4 changed files with 9 additions and 9 deletions

View File

@ -14,7 +14,7 @@ csv = "1.0.7"
diskus = "0.5.0"
env_logger = "0.6.1"
jemallocator = "0.1.9"
linked-hash-map = "0.5.2"
indexmap = { version = "1.1.0", features = ["serde-1"] }
meilidb-core = { path = "../meilidb-core", version = "0.1.0" }
quickcheck = "0.8.2"
rand = "0.6.5"

View File

@ -9,7 +9,7 @@ use std::iter::FromIterator;
use std::path::PathBuf;
use std::time::{Instant, Duration};
use linked_hash_map::LinkedHashMap;
use indexmap::IndexMap;
use rustyline::{Editor, Config};
use structopt::StructOpt;
use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor};
@ -39,7 +39,7 @@ pub struct Opt {
pub char_context: usize,
}
type Document = LinkedHashMap<String, String>;
type Document = IndexMap<String, String>;
fn display_highlights(text: &str, ranges: &[usize]) -> io::Result<()> {
let mut stdout = StandardStream::stdout(ColorChoice::Always);