mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-01 13:37:48 +00:00
derive(Show) -> derive(Debug)
This commit is contained in:
parent
d89d9ca73b
commit
db8506532e
3 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
|
|
|
@ -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<String>, // the lines of the file
|
||||
pub init_str : String, // string representing the init, that is, the first line's indent
|
||||
|
|
|
@ -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<String>) -> isize {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue