From 5f68fba61cde756ff87dadec65ec2f1c708cbf82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=E1=BA=A5n-Anh=20Nguy=E1=BB=85n?= Date: Thu, 27 Feb 2020 22:36:13 +0700 Subject: [PATCH] Mark the return value of TreeCursor::field_name static --- lib/binding_rust/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/binding_rust/lib.rs b/lib/binding_rust/lib.rs index a222dbf7..2a4f80a2 100644 --- a/lib/binding_rust/lib.rs +++ b/lib/binding_rust/lib.rs @@ -1059,7 +1059,7 @@ impl<'a> TreeCursor<'a> { } /// Get the field name of this tree cursor's current node. - pub fn field_name(&self) -> Option<&str> { + pub fn field_name(&self) -> Option<&'static str> { unsafe { let ptr = ffi::ts_tree_cursor_current_field_name(&self.0); if ptr.is_null() {