File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
branches/dist-snap/src/libstd Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
9
refs/heads/incoming: 44d4d6de762f3f9aae1fedcf454c66b79b3ad58d
10
- refs/heads/dist-snap: 83e831bc229c2346e2322aaad1fdaa219325a4b3
10
+ refs/heads/dist-snap: c317d3f6fa9475e65b6276743c09444441059ca7
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
13
13
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change @@ -827,15 +827,15 @@ impl<'self> serialize::Decoder for Decoder<'self> {
827
827
debug!(" read_owned_str");
828
828
match *self.pop() {
829
829
String(ref s) => copy *s,
830
- _ => fail!(~ " not a string" )
830
+ ref json => fail!(fmt!( " not a string: %? ", *json) )
831
831
}
832
832
}
833
833
834
834
fn read_managed_str(&self) -> @str {
835
835
debug!(" read_managed_str");
836
836
match *self.pop() {
837
837
String(ref s) => s.to_managed(),
838
- _ => fail!(~ " not a string" )
838
+ ref json => fail!(fmt!( " not a string: %? ", *json) )
839
839
}
840
840
}
841
841
@@ -872,7 +872,7 @@ impl<'self> serialize::Decoder for Decoder<'self> {
872
872
let name = match *self.peek() {
873
873
String(ref s) => s,
874
874
List([String(ref s), .. _]) => s,
875
- json => fail!(fmt!(" invalid variant: %?", json)),
875
+ ref json => fail!(fmt!(" invalid variant: %?", * json)),
876
876
};
877
877
let idx = match vec::position(names, |n| str::eq_slice(*n, *name)) {
878
878
Some(idx) => idx,
You can’t perform that action at this time.
0 commit comments