We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd6557 commit bba5520Copy full SHA for bba5520
src/libstd/json.rs
@@ -1226,7 +1226,7 @@ mod tests {
1226
use core::hashmap::linear::LinearMap;
1227
1228
fn mk_object(items: &[(~str, Json)]) -> Json {
1229
- let mut d = LinearMap::new();
+ let mut d = ~LinearMap::new();
1230
1231
for items.each |item| {
1232
match *item {
src/test/run-pass/issue-2804.rs
@@ -23,7 +23,7 @@ enum object
23
24
fn lookup(table: ~json::Object, key: ~str, default: ~str) -> ~str
25
{
26
- match table.find(&key)
+ match table.find_copy(&key)
27
28
option::Some(std::json::String(copy s)) =>
29
0 commit comments