diff options
Diffstat (limited to 'src/libstd/json.rs')
| -rw-r--r-- | src/libstd/json.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/json.rs b/src/libstd/json.rs index 2ddfc041f95..f78e4be06da 100644 --- a/src/libstd/json.rs +++ b/src/libstd/json.rs @@ -622,11 +622,11 @@ impl <A: to_json> option<A>: to_json { } } -impl json: to_str::to_str { +impl json: to_str::ToStr { fn to_str() -> ~str { to_str(self) } } -impl error: to_str::to_str { +impl error: to_str::ToStr { fn to_str() -> ~str { fmt!{"%u:%u: %s", self.line, self.col, *self.msg} } |
