Skip to content

Commit 5b41df4

Browse files
committed
Remove some unnecessary impls from json
1 parent 18ca312 commit 5b41df4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/libextra/json.rs

-8
Original file line numberDiff line numberDiff line change
@@ -1195,10 +1195,6 @@ impl ToJson for Json {
11951195
fn to_json(&self) -> Json { (*self).clone() }
11961196
}
11971197

1198-
impl ToJson for @Json {
1199-
fn to_json(&self) -> Json { (**self).to_json() }
1200-
}
1201-
12021198
impl ToJson for int {
12031199
fn to_json(&self) -> Json { Number(*self as f64) }
12041200
}
@@ -1259,10 +1255,6 @@ impl ToJson for ~str {
12591255
fn to_json(&self) -> Json { String((*self).clone()) }
12601256
}
12611257

1262-
impl ToJson for @~str {
1263-
fn to_json(&self) -> Json { String((**self).clone()) }
1264-
}
1265-
12661258
impl<A:ToJson,B:ToJson> ToJson for (A, B) {
12671259
fn to_json(&self) -> Json {
12681260
match *self {

0 commit comments

Comments
 (0)