mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:36:22 -04:00
fix(rust): remove must_use attribute from Tree::changed_ranges
`ExactSizeIterator` implements `std::iter::Iterator`, which is already `must_use`.
This commit is contained in:
parent
2452dc7a71
commit
54a46eb49b
|
|
@ -1542,7 +1542,6 @@ impl Tree {
|
|||
/// functions. Call it on the old tree that was passed to parse, and
|
||||
/// pass the new tree that was returned from `parse`.
|
||||
#[doc(alias = "ts_tree_get_changed_ranges")]
|
||||
#[must_use]
|
||||
pub fn changed_ranges(&self, other: &Self) -> impl ExactSizeIterator<Item = Range> {
|
||||
let mut count = 0u32;
|
||||
unsafe {
|
||||
|
|
|
|||
Loading…
Reference in a new issue