Skip to content

Commit 824b7d6

Browse files
authored
Merge pull request tree-sitter#562 from ubolonton/static-field-name
Mark the return value of TreeCursor::field_name static
2 parents a578ba5 + 5f68fba commit 824b7d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/binding_rust/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ impl<'a> TreeCursor<'a> {
10591059
}
10601060

10611061
/// Get the field name of this tree cursor's current node.
1062-
pub fn field_name(&self) -> Option<&str> {
1062+
pub fn field_name(&self) -> Option<&'static str> {
10631063
unsafe {
10641064
let ptr = ffi::ts_tree_cursor_current_field_name(&self.0);
10651065
if ptr.is_null() {

0 commit comments

Comments
 (0)