Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 43f7113

Browse files
glynMarko Mikulicic
andcommitted
Update src/parser.rs
Co-authored-by: Marko Mikulicic <[email protected]>
1 parent df0a708 commit 43f7113

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/parser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
pub use crate::ast::*;
88
use crate::pest::Parser;
9-
use slyce::{Index, Slice};
9+
use slyce::Slice;
1010

1111
#[derive(Parser)]
1212
#[grammar = "grammar.pest"]
@@ -96,8 +96,8 @@ fn parse_union_array_slice(matcher_rule: pest::iterators::Pair<Rule>) -> UnionEl
9696
}
9797

9898
UnionElement::Slice(Slice {
99-
start: start.map(Index::from).unwrap_or_default(),
100-
end: end.map(Index::from).unwrap_or_default(),
99+
start: start.into(),
100+
end: end.into(),
101101
step,
102102
})
103103
}

0 commit comments

Comments
 (0)