From 54a46eb49b436ef63cd63ebf188d7e8bb10de405 Mon Sep 17 00:00:00 2001 From: Will Lillis Date: Sun, 23 Aug 2026 03:07:28 -0400 Subject: [PATCH] fix(rust): remove `must_use` attribute from `Tree::changed_ranges` `ExactSizeIterator` implements `std::iter::Iterator`, which is already `must_use`. --- lib/binding_rust/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/binding_rust/lib.rs b/lib/binding_rust/lib.rs index 8fb5ab417..90b3b5a41 100644 --- a/lib/binding_rust/lib.rs +++ b/lib/binding_rust/lib.rs @@ -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 { let mut count = 0u32; unsafe {