1
Fork 0

cleanup: &foo[0..a] -> &foo[..a]

This commit is contained in:
Jorge Aparicio 2015-01-12 16:59:18 -05:00
parent 3a44a19af2
commit c1d48a8508
44 changed files with 104 additions and 105 deletions

View file

@ -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 {