Code cleanup
This commit is contained in:
@@ -8,17 +8,17 @@ impl Parse for SourceCode {
|
||||
type PositionRepr = LineCol;
|
||||
|
||||
#[inline]
|
||||
fn start<'input>(&'input self) -> usize {
|
||||
fn start(&self) -> usize {
|
||||
self.text.as_str().start()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn is_eof<'input>(&'input self, p: usize) -> bool {
|
||||
fn is_eof(&self, p: usize) -> bool {
|
||||
self.text.as_str().is_eof(p)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn position_repr<'input>(&'input self, p: usize) -> Self::PositionRepr {
|
||||
fn position_repr(&self, p: usize) -> Self::PositionRepr {
|
||||
self.text.as_str().position_repr(p)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user