parser: Remove Deref
impl from Parser
This commit is contained in:
parent
3da094319c
commit
6eae6b0fe9
1 changed files with 0 additions and 10 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue