Skip to content

Commit

Permalink
Use std::collections::HashMap
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrubeck committed Jan 2, 2020
1 parent 01f2cf4 commit d10bc8c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/k_nucleotide.rs
Expand Up @@ -7,14 +7,13 @@

extern crate futures;
extern crate futures_cpupool;
extern crate indexmap;

use std::sync::Arc;
use std::hash::{Hasher, BuildHasherDefault};
use futures::Future;
use futures_cpupool::CpuPool;
use Item::*;
use indexmap::IndexMap;
use std::collections::HashMap;

struct NaiveHasher(u64);
impl Default for NaiveHasher {
Expand All @@ -34,7 +33,7 @@ impl Hasher for NaiveHasher {
}
}
type NaiveBuildHasher = BuildHasherDefault<NaiveHasher>;
type NaiveHashMap<K, V> = IndexMap<K, V, NaiveBuildHasher>;
type NaiveHashMap<K, V> = HashMap<K, V, NaiveBuildHasher>;
type Map = NaiveHashMap<Code, u32>;

#[derive(Hash, PartialEq, PartialOrd, Ord, Eq, Clone, Copy)]
Expand Down

0 comments on commit d10bc8c

Please sign in to comment.