Skip to content

Commit 9fcee17

Browse files
committed
reformat.
1 parent b491e77 commit 9fcee17

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/clang.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ impl Cursor {
264264

265265
/// Given that this cursor's referent is reference type, get the cursor
266266
/// pointing to the referenced type.
267-
pub fn referenced(&self) -> Option<Cursor> {
267+
pub fn referenced(&self) -> Option<Cursor> {
268268
unsafe {
269269
let ret = Cursor {
270270
x: clang_getCursorReferenced(self.x),

src/ir/context.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,7 @@ impl<'ctx> BindgenContext<'ctx> {
590590
-> Option<ItemId> {
591591
use clangll::{CXCursor_ClassTemplate,
592592
CXCursor_ClassTemplatePartialSpecialization,
593-
CXCursor_TypeAliasTemplateDecl,
594-
CXCursor_TypeRef};
593+
CXCursor_TypeAliasTemplateDecl, CXCursor_TypeRef};
595594
debug!("builtin_or_resolved_ty: {:?}, {:?}, {:?}",
596595
ty,
597596
location,

src/ir/ty.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ impl Type {
667667
TypeKind::TemplateAlias(inner.unwrap(), args)
668668
}
669669
CXCursor_TemplateRef => {
670-
let referenced = location.referenced().expect("expected value, got none");
670+
let referenced = location.referenced().unwrap();
671671
let referenced_ty = referenced.cur_type();
672672
let referenced_declaration =
673673
Some(referenced_ty.declaration());
@@ -679,7 +679,7 @@ impl Type {
679679
ctx);
680680
}
681681
CXCursor_TypeRef => {
682-
let referenced = location.referenced().expect("expected value, got none");
682+
let referenced = location.referenced().unwrap();
683683
let referenced_ty = referenced.cur_type();
684684
let referenced_declaration =
685685
Some(referenced_ty.declaration());

0 commit comments

Comments
 (0)