Remove some unnecessary impls from json

This commit is contained in:
Erick Tryzelaar 2013-11-28 14:51:00 -08:00
parent 18ca312984
commit 5b41df4ca0

View File

@ -1195,10 +1195,6 @@ impl ToJson for Json {
fn to_json(&self) -> Json { (*self).clone() }
}
impl ToJson for @Json {
fn to_json(&self) -> Json { (**self).to_json() }
}
impl ToJson for int {
fn to_json(&self) -> Json { Number(*self as f64) }
}
@ -1259,10 +1255,6 @@ impl ToJson for ~str {
fn to_json(&self) -> Json { String((*self).clone()) }
}
impl ToJson for @~str {
fn to_json(&self) -> Json { String((**self).clone()) }
}
impl<A:ToJson,B:ToJson> ToJson for (A, B) {
fn to_json(&self) -> Json {
match *self {