fix tests
This commit is contained in:
parent
dbd65577ad
commit
bba5520d62
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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)) =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue