Skip to content

Commit 9c1bc96

Browse files
committed
---
yaml --- r: 10464 b: refs/heads/snap-stage3 c: 11a56c3 h: refs/heads/master v: v3
1 parent 3f8423a commit 9c1bc96

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: ab9c900131d8224bc105fbeb0795a0f7001a0836
4+
refs/heads/snap-stage3: 11a56c3e9141045d92ad913495c2387b636f5d9b
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/src/libstd/json.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,14 @@ impl of to_json for json {
510510
fn to_json() -> json { self }
511511
}
512512

513+
impl of to_json for @json {
514+
fn to_json() -> json { *self }
515+
}
516+
517+
impl of to_json for int {
518+
fn to_json() -> json { num(self as float) }
519+
}
520+
513521
impl of to_json for i8 {
514522
fn to_json() -> json { num(self as float) }
515523
}
@@ -526,6 +534,10 @@ impl of to_json for i64 {
526534
fn to_json() -> json { num(self as float) }
527535
}
528536

537+
impl of to_json for uint {
538+
fn to_json() -> json { num(self as float) }
539+
}
540+
529541
impl of to_json for u8 {
530542
fn to_json() -> json { num(self as float) }
531543
}

0 commit comments

Comments
 (0)