mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-03 06:27:45 +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;
|
use std;
|
||||||
|
|
||||||
#[derive(PartialEq,Eq,PartialOrd,Ord,Show)]
|
#[derive(PartialEq,Eq,PartialOrd,Ord,Debug)]
|
||||||
pub struct Range {
|
pub struct Range {
|
||||||
pub low: usize,
|
pub low: usize,
|
||||||
pub high: 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
|
// lines with PSKIP, lacking PREFIX, or which are entirely blank are
|
||||||
// NoFormatLines; otherwise, they are FormatLines
|
// NoFormatLines; otherwise, they are FormatLines
|
||||||
#[derive(Show)]
|
#[derive(Debug)]
|
||||||
pub enum Line {
|
pub enum Line {
|
||||||
FormatLine(FileLine),
|
FormatLine(FileLine),
|
||||||
NoFormatLine(String, bool)
|
NoFormatLine(String, bool)
|
||||||
|
@ -57,7 +57,7 @@ impl Line {
|
||||||
|
|
||||||
// each line's prefix has to be considered to know whether to merge it with
|
// each line's prefix has to be considered to know whether to merge it with
|
||||||
// the next line or not
|
// the next line or not
|
||||||
#[derive(Show)]
|
#[derive(Debug)]
|
||||||
struct FileLine {
|
struct FileLine {
|
||||||
line : String,
|
line : String,
|
||||||
indent_end : usize, // the end of the indent, always the start of the text
|
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
|
// plus info about the paragraph's indentation
|
||||||
// (but we only retain the String from the FileLine; the other info
|
// (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
|
// is only there to help us in deciding how to merge lines into Paragraphs
|
||||||
#[derive(Show)]
|
#[derive(Debug)]
|
||||||
pub struct Paragraph {
|
pub struct Paragraph {
|
||||||
lines : Vec<String>, // the lines of the file
|
lines : Vec<String>, // the lines of the file
|
||||||
pub init_str : String, // string representing the init, that is, the first line's indent
|
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 collections::string::String;
|
||||||
use std::old_io::File;
|
use std::old_io::File;
|
||||||
|
|
||||||
#[derive(Show)]
|
#[derive(Debug)]
|
||||||
enum Radix { Decimal, Hexadecimal, Octal, Binary }
|
enum Radix { Decimal, Hexadecimal, Octal, Binary }
|
||||||
|
|
||||||
pub fn uumain(args: Vec<String>) -> isize {
|
pub fn uumain(args: Vec<String>) -> isize {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue