rustfmt: libflate, libfmt_macros, libgetopts, libgraphviz, liblog, librand
This commit is contained in:
@@ -187,7 +187,7 @@ impl<'a> Parser<'a> {
|
||||
Parser {
|
||||
input: s,
|
||||
cur: s.char_indices().peekable(),
|
||||
errors: vec!(),
|
||||
errors: vec![],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -236,7 +236,7 @@ impl<'a> Parser<'a> {
|
||||
if c.is_whitespace() {
|
||||
self.cur.next();
|
||||
} else {
|
||||
break
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -274,9 +274,7 @@ impl<'a> Parser<'a> {
|
||||
ArgumentIs(i)
|
||||
} else {
|
||||
match self.cur.peek() {
|
||||
Some(&(_, c)) if c.is_alphabetic() => {
|
||||
ArgumentNamed(self.word())
|
||||
}
|
||||
Some(&(_, c)) if c.is_alphabetic() => ArgumentNamed(self.word()),
|
||||
_ => ArgumentNext,
|
||||
}
|
||||
}
|
||||
@@ -294,7 +292,7 @@ impl<'a> Parser<'a> {
|
||||
ty: &self.input[..0],
|
||||
};
|
||||
if !self.consume(':') {
|
||||
return spec
|
||||
return spec;
|
||||
}
|
||||
|
||||
// fill character
|
||||
@@ -419,7 +417,7 @@ impl<'a> Parser<'a> {
|
||||
found = true;
|
||||
self.cur.next();
|
||||
} else {
|
||||
break
|
||||
break;
|
||||
}
|
||||
}
|
||||
if found {
|
||||
@@ -447,7 +445,7 @@ mod tests {
|
||||
precision: CountImplied,
|
||||
width: CountImplied,
|
||||
ty: "",
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
fn musterr(s: &str) {
|
||||
|
||||
Reference in New Issue
Block a user