@@ -1614,7 +1614,7 @@ impl<'a> Iterator for ChunksBytes<'a> {
1616pub struct RopeProvider<'a>(pub RopeSlice<'a>);
1616pub struct RopeProvider<'a>(pub RopeSlice<'a>);
1617−impl<'a> TextProvider<&'a [u8]> for RopeProvider<'a> {
1617+impl<'a> TextProvider<'a> for RopeProvider<'a> {
1618 type I = ChunksBytes<'a>;
1618 type I = ChunksBytes<'a>;
1620 fn text(&mut self, node: Node) -> Self::I {
1620 fn text(&mut self, node: Node) -> Self::I {
@@ -1628,7 +1628,7 @@ impl<'a> TextProvider<&'a [u8]> for RopeProvider<'a> {
1628struct HighlightIterLayer<'a> {
1628struct HighlightIterLayer<'a> {
1629 _tree: Option<Tree>,
1629 _tree: Option<Tree>,
1630 cursor: QueryCursor,
1630 cursor: QueryCursor,
1631− captures: RefCell<iter::Peekable<QueryCaptures<'a, 'a, RopeProvider<'a>, &'a [u8]>>>,
1631+ captures: RefCell<iter::Peekable<QueryCaptures<'a, 'a, RopeProvider<'a>>>>,
1632 config: &'a HighlightConfiguration,
1632 config: &'a HighlightConfiguration,
1633 highlight_end_stack: Vec<usize>,
1633 highlight_end_stack: Vec<usize>,
1634 scope_stack: Vec<LocalScope<'a>>,
1634 scope_stack: Vec<LocalScope<'a>>,