From db8506532e4d6960ee3a663e0ffc9c2516021016 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Tue, 3 Feb 2015 22:34:45 +0100 Subject: [PATCH] derive(Show) -> derive(Debug) --- src/cut/ranges.rs | 2 +- src/fmt/parasplit.rs | 6 +++--- src/od/od.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cut/ranges.rs b/src/cut/ranges.rs index c97885761..10b1bcf80 100644 --- a/src/cut/ranges.rs +++ b/src/cut/ranges.rs @@ -9,7 +9,7 @@ use std; -#[derive(PartialEq,Eq,PartialOrd,Ord,Show)] +#[derive(PartialEq,Eq,PartialOrd,Ord,Debug)] pub struct Range { pub low: usize, pub high: usize, diff --git a/src/fmt/parasplit.rs b/src/fmt/parasplit.rs index 901ec2f8f..4efc623f5 100644 --- a/src/fmt/parasplit.rs +++ b/src/fmt/parasplit.rs @@ -31,7 +31,7 @@ fn char_width(c: char) -> usize { // lines with PSKIP, lacking PREFIX, or which are entirely blank are // NoFormatLines; otherwise, they are FormatLines -#[derive(Show)] +#[derive(Debug)] pub enum Line { FormatLine(FileLine), NoFormatLine(String, bool) @@ -57,7 +57,7 @@ impl Line { // each line's prefix has to be considered to know whether to merge it with // the next line or not -#[derive(Show)] +#[derive(Debug)] struct FileLine { line : String, indent_end : usize, // the end of the indent, always the start of the text @@ -198,7 +198,7 @@ impl<'a> Iterator for FileLines<'a> { // plus info about the paragraph's indentation // (but we only retain the String from the FileLine; the other info // is only there to help us in deciding how to merge lines into Paragraphs -#[derive(Show)] +#[derive(Debug)] pub struct Paragraph { lines : Vec, // the lines of the file pub init_str : String, // string representing the init, that is, the first line's indent diff --git a/src/od/od.rs b/src/od/od.rs index 779bd60e5..93f11dd56 100644 --- a/src/od/od.rs +++ b/src/od/od.rs @@ -16,7 +16,7 @@ extern crate collections; use collections::string::String; use std::old_io::File; -#[derive(Show)] +#[derive(Debug)] enum Radix { Decimal, Hexadecimal, Octal, Binary } pub fn uumain(args: Vec) -> isize {