Skip to content

Commit 91faa76

Browse files
committed
reformat.
1 parent d516168 commit 91faa76

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

libbindgen/src/clang.rs

Lines changed: 1 addition & 1 deletion
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),

libbindgen/src/ir/context.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,7 @@ impl<'ctx> BindgenContext<'ctx> {
609609
-> Option<ItemId> {
610610
use clangll::{CXCursor_ClassTemplate,
611611
CXCursor_ClassTemplatePartialSpecialization,
612-
CXCursor_TypeAliasTemplateDecl,
613-
CXCursor_TypeRef};
612+
CXCursor_TypeAliasTemplateDecl, CXCursor_TypeRef};
614613
debug!("builtin_or_resolved_ty: {:?}, {:?}, {:?}",
615614
ty,
616615
location,

libbindgen/src/ir/ty.rs

Lines changed: 2 additions & 2 deletions
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)