Revert "Use slice syntax instead of slice_to, etc."

This reverts commit 40b9f5ded5.
This commit is contained in:
Aaron Turon
2014-10-02 11:48:07 -07:00
parent c0c6c89589
commit d2ea0315e0
81 changed files with 363 additions and 331 deletions

View File

@@ -511,7 +511,7 @@ impl<'a> Parser<'a> {
self.chari = closer;
let greed = try!(self.get_next_greedy());
let inner = String::from_chars(
self.chars[start+1..closer]);
self.chars.as_slice().slice(start + 1, closer));
// Parse the min and max values from the regex.
let (mut min, mut max): (uint, Option<uint>);
@@ -944,7 +944,7 @@ impl<'a> Parser<'a> {
}
fn slice(&self, start: uint, end: uint) -> String {
String::from_chars(self.chars[start..end])
String::from_chars(self.chars.as_slice().slice(start, end))
}
}