Skip to content

Commit bba5520

Browse files
committed
fix tests
1 parent dbd6557 commit bba5520

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libstd/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ mod tests {
12261226
use core::hashmap::linear::LinearMap;
12271227

12281228
fn mk_object(items: &[(~str, Json)]) -> Json {
1229-
let mut d = LinearMap::new();
1229+
let mut d = ~LinearMap::new();
12301230

12311231
for items.each |item| {
12321232
match *item {

src/test/run-pass/issue-2804.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ enum object
2323

2424
fn lookup(table: ~json::Object, key: ~str, default: ~str) -> ~str
2525
{
26-
match table.find(&key)
26+
match table.find_copy(&key)
2727
{
2828
option::Some(std::json::String(copy s)) =>
2929
{

0 commit comments

Comments
 (0)