diff options
| author | bors <bors@rust-lang.org> | 2013-02-09 10:20:55 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-02-09 10:20:55 -0800 |
| commit | d90abd58799e7551682c193c0b0d1697ee618f95 (patch) | |
| tree | 5b9a2ee7b5eefbe2d3f780520c89f4011e0a3c41 /src/libstd/json.rs | |
| parent | 0c2b4edff5009ff4d2330723d9acbc85af4b12ab (diff) | |
| parent | a380df809c8eb874540a123780612f14cfc7303e (diff) | |
| download | rust-d90abd58799e7551682c193c0b0d1697ee618f95.tar.gz rust-d90abd58799e7551682c193c0b0d1697ee618f95.zip | |
auto merge of #4848 : nikomatsakis/rust/issue-4821-bad-kind-computation, r=catamorphism
...ear values to be copied. Rewrite kind computation so that instead of directly computing the kind it computes what kinds of values are present in the type, and then derive kinds based on that. I find this easier to think about. Fixes #4821. r? @catamorphism
Diffstat (limited to 'src/libstd/json.rs')
| -rw-r--r-- | src/libstd/json.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/json.rs b/src/libstd/json.rs index d5c91ea5147..404f1bcda99 100644 --- a/src/libstd/json.rs +++ b/src/libstd/json.rs @@ -832,7 +832,7 @@ pub impl Decoder: serialize::Decoder { fn read_owned_vec<T>(&self, f: fn(uint) -> T) -> T { debug!("read_owned_vec()"); let len = match *self.peek() { - List(list) => list.len(), + List(ref list) => list.len(), _ => die!(~"not a list"), }; let res = f(len); |
