Remove Copy trait on LeafAtOffset

Because it's a stateful iterator, it's easier to explicitly clone it
when necesary.

Fixes clippy:clone_on_copy
This commit is contained in:
Alan Du 2018-10-16 11:54:29 -04:00
parent d493a4476c
commit 4e8ea94e2b

View File

@ -46,7 +46,7 @@ pub fn find_leaf_at_offset(node: SyntaxNodeRef, offset: TextUnit) -> LeafAtOffse
}
}
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Debug)]
pub enum LeafAtOffset<'a> {
None,
Single(SyntaxNodeRef<'a>),