mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-16 02:23:09 +08:00
fixup missing function
This commit is contained in:
parent
7dc046b959
commit
28d4fc33d8
|
@ -44,6 +44,12 @@ pub struct SourceRange {
|
|||
pub length: u32,
|
||||
}
|
||||
|
||||
impl SourceRange {
|
||||
pub fn as_usize(&self) -> std::ops::Range<usize> {
|
||||
(*self).into()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
pub enum ParseTokenType {
|
||||
invalid = 1,
|
||||
|
|
Loading…
Reference in New Issue
Block a user