cleanup: &foo[0..a]
-> &foo[..a]
This commit is contained in:
parent
3a44a19af2
commit
c1d48a8508
44 changed files with 104 additions and 105 deletions
|
@ -286,7 +286,7 @@ impl<'a> Parser<'a> {
|
|||
flags: 0,
|
||||
precision: CountImplied,
|
||||
width: CountImplied,
|
||||
ty: &self.input[0..0],
|
||||
ty: &self.input[..0],
|
||||
};
|
||||
if !self.consume(':') { return spec }
|
||||
|
||||
|
@ -395,7 +395,7 @@ impl<'a> Parser<'a> {
|
|||
self.cur.next();
|
||||
pos
|
||||
}
|
||||
Some(..) | None => { return &self.input[0..0]; }
|
||||
Some(..) | None => { return &self.input[..0]; }
|
||||
};
|
||||
let mut end;
|
||||
loop {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue