File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
branches/snap-stage3/src/libstd Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: ab9c900131d8224bc105fbeb0795a0f7001a0836
4
+ refs/heads/snap-stage3: 11a56c3e9141045d92ad913495c2387b636f5d9b
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -510,6 +510,14 @@ impl of to_json for json {
510
510
fn to_json ( ) -> json { self }
511
511
}
512
512
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
+
513
521
impl of to_json for i8 {
514
522
fn to_json ( ) -> json { num ( self as float ) }
515
523
}
@@ -526,6 +534,10 @@ impl of to_json for i64 {
526
534
fn to_json ( ) -> json { num ( self as float ) }
527
535
}
528
536
537
+ impl of to_json for uint {
538
+ fn to_json ( ) -> json { num ( self as float ) }
539
+ }
540
+
529
541
impl of to_json for u8 {
530
542
fn to_json ( ) -> json { num ( self as float ) }
531
543
}
You can’t perform that action at this time.
0 commit comments