Follow rust std: fmt::Show was renamed to fmt::Debug

This commit is contained in:
Thomas Bahn
2015-02-06 15:21:51 +01:00
parent 5dd077969c
commit 9a284ae7c2
19 changed files with 77 additions and 77 deletions
+6 -6
View File
@@ -18,7 +18,7 @@ use std::rc::Rc;
use std::string;
use std::sync::Arc;
#[derive(Clone, PartialEq, Show)]
#[derive(Clone, PartialEq, Debug)]
pub enum Token {
Null,
Bool(bool),
@@ -138,7 +138,7 @@ static COMPOUND_TOKEN_KINDS: &'static [TokenKind] = &[
TokenKind::MapStartKind,
];
impl ::std::fmt::Show for TokenKind {
impl ::std::fmt::Debug for TokenKind {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
match *self {
TokenKind::NullKind => "Null".fmt(f),
@@ -1091,7 +1091,7 @@ mod tests {
//////////////////////////////////////////////////////////////////////////////
#[derive(Clone, PartialEq, Show, RustcDecodable)]
#[derive(Clone, PartialEq, Debug, RustcDecodable)]
struct Inner {
a: (),
b: usize,
@@ -1133,7 +1133,7 @@ mod tests {
//////////////////////////////////////////////////////////////////////////////
#[derive(Clone, PartialEq, Show, RustcDecodable)]
#[derive(Clone, PartialEq, Debug, RustcDecodable)]
struct Outer {
inner: Vec<Inner>,
}
@@ -1166,7 +1166,7 @@ mod tests {
//////////////////////////////////////////////////////////////////////////////
#[derive(Clone, PartialEq, Show, RustcDecodable)]
#[derive(Clone, PartialEq, Debug, RustcDecodable)]
enum Animal {
Dog,
Frog(string::String, isize)
@@ -1193,7 +1193,7 @@ mod tests {
//////////////////////////////////////////////////////////////////////////////
#[derive(Show)]
#[derive(Debug)]
enum Error {
EndOfStream,
SyntaxError(Vec<TokenKind>),