1
Fork 0

fix tests

This commit is contained in:
Daniel Micay 2013-01-23 21:09:50 -05:00
parent dbd65577ad
commit bba5520d62
2 changed files with 2 additions and 2 deletions

View file

@ -1226,7 +1226,7 @@ mod tests {
use core::hashmap::linear::LinearMap; use core::hashmap::linear::LinearMap;
fn mk_object(items: &[(~str, Json)]) -> Json { fn mk_object(items: &[(~str, Json)]) -> Json {
let mut d = LinearMap::new(); let mut d = ~LinearMap::new();
for items.each |item| { for items.each |item| {
match *item { match *item {

View file

@ -23,7 +23,7 @@ enum object
fn lookup(table: ~json::Object, key: ~str, default: ~str) -> ~str fn lookup(table: ~json::Object, key: ~str, default: ~str) -> ~str
{ {
match table.find(&key) match table.find_copy(&key)
{ {
option::Some(std::json::String(copy s)) => option::Some(std::json::String(copy s)) =>
{ {