Skip to content

Commit 765292f

Browse files
committed
Narrowed unsafe scope
1 parent e9a5cd9 commit 765292f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/clang.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -797,9 +797,7 @@ impl Comment {
797797
if idx >= self.num_children() {
798798
None
799799
} else {
800-
unsafe {
801-
Some(Comment { x: clang_Comment_getChild(self.x, idx) })
802-
}
800+
Some(Comment { x: unsafe { clang_Comment_getChild(self.x, idx) } })
803801
}
804802
}
805803

0 commit comments

Comments
 (0)