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:
Will Lillis 2026-08-23 03:07:28 -04:00 committed by Christian Clason
parent 2452dc7a71
commit 54a46eb49b

View file

@ -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 {