1
Fork 0

extra: add explicit ratchet-noise-percent option to benchmark ratchet, plus a few test breaking fixes.

This commit is contained in:
Graydon Hoare 2013-07-11 15:16:11 -07:00
parent 83fb3d224a
commit bbdbd3c69d
3 changed files with 57 additions and 30 deletions

View file

@ -1331,7 +1331,7 @@ impl<A:ToJson> ToJson for ~[A] {
fn to_json(&self) -> Json { List(self.map(|elt| elt.to_json())) }
}
impl<A:ToJson + Copy> ToJson for HashMap<~str, A> {
impl<A:ToJson> ToJson for HashMap<~str, A> {
fn to_json(&self) -> Json {
let mut d = HashMap::new();
for self.iter().advance |(key, value)| {
@ -1341,7 +1341,7 @@ impl<A:ToJson + Copy> ToJson for HashMap<~str, A> {
}
}
impl<A:ToJson + Copy> ToJson for TreeMap<~str, A> {
impl<A:ToJson> ToJson for TreeMap<~str, A> {
fn to_json(&self) -> Json {
let mut d = HashMap::new();
for self.iter().advance |(key, value)| {