parser: Remove Deref impl from Parser

This commit is contained in:
Vadim Petrochenkov 2019-06-07 13:52:03 +03:00
parent 3da094319c
commit 6eae6b0fe9

View file

@ -58,7 +58,6 @@ use log::debug;
use std::borrow::Cow;
use std::cmp;
use std::mem;
use std::ops::Deref;
use std::path::{self, Path, PathBuf};
use std::slice;
@ -251,15 +250,6 @@ impl<'a> Drop for Parser<'a> {
}
}
// FIXME: Parser uses `self.span` all the time.
// Remove this impl if you think that using `self.token.span` instead is acceptable.
impl Deref for Parser<'_> {
type Target = Token;
fn deref(&self) -> &Self::Target {
&self.token
}
}
#[derive(Clone)]
crate struct TokenCursor {
crate frame: TokenCursorFrame,