Remove deprecated .slice_from()
call
This commit is contained in:
parent
7056661a3a
commit
205cc59849
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ struct Parser<'cx: 'r, 's: 'cx, 'i, 'r, 'o: 'r> {
|
|||
impl<'cx, 's, 'i, 'r, 'o> Parser<'cx, 's, 'i, 'r, 'o> {
|
||||
/// Consume `n` items from the input.
|
||||
fn shift(&mut self, n: usize) {
|
||||
self.input = self.input.slice_from(n);
|
||||
self.input = &self.input[n..];
|
||||
}
|
||||
|
||||
/// Construct a Rust AST parser from the given token tree.
|
||||
|
|
Loading…
Add table
Reference in a new issue