Merge pull request #562 from ubolonton/static-field-name
Mark the return value of TreeCursor::field_name static
This commit is contained in:
commit
824b7d65fe
1 changed files with 1 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue