diff options
-rw-r--r-- | src/clang.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clang.rs b/src/clang.rs index 1a45eefa..35dd7cc3 100644 --- a/src/clang.rs +++ b/src/clang.rs @@ -208,7 +208,7 @@ impl Cursor { /// Get the kind of referent this cursor is pointing to. pub fn kind(&self) -> CXCursorKind { - unsafe { clang_getCursorKind(self.x) } + self.x.kind } /// Returns true is the cursor is a definition |