summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/clang.rs17
-rw-r--r--src/ir/function.rs5
-rw-r--r--src/ir/objc.rs4
3 files changed, 18 insertions, 8 deletions
diff --git a/src/clang.rs b/src/clang.rs
index 86105fc1..15cd60fc 100644
--- a/src/clang.rs
+++ b/src/clang.rs
@@ -1464,7 +1464,10 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
type_to_str(ty.kind())));
}
if let Some(ty) = c.ret_type() {
- print_indent(depth, format!(" {}ret-type = {}", prefix, type_to_str(ty.kind())));
+ print_indent(depth,
+ format!(" {}ret-type = {}",
+ prefix,
+ type_to_str(ty.kind())));
}
if let Some(refd) = c.referenced() {
@@ -1473,7 +1476,9 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
print_cursor(depth,
String::from(prefix) + "referenced.",
&refd);
- print_cursor(depth, String::from(prefix) + "referenced.", &refd);
+ print_cursor(depth,
+ String::from(prefix) + "referenced.",
+ &refd);
}
}
@@ -1483,7 +1488,9 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
print_cursor(depth,
String::from(prefix) + "canonical.",
&canonical);
- print_cursor(depth, String::from(prefix) + "canonical.", &canonical);
+ print_cursor(depth,
+ String::from(prefix) + "canonical.",
+ &canonical);
}
if let Some(specialized) = c.specialized() {
@@ -1492,7 +1499,9 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
print_cursor(depth,
String::from(prefix) + "specialized.",
&specialized);
- print_cursor(depth, String::from(prefix) + "specialized.", &specialized);
+ print_cursor(depth,
+ String::from(prefix) + "specialized.",
+ &specialized);
}
}
}
diff --git a/src/ir/function.rs b/src/ir/function.rs
index 9ef9c3a7..6273de28 100644
--- a/src/ir/function.rs
+++ b/src/ir/function.rs
@@ -229,8 +229,9 @@ impl FunctionSig {
let abi = get_abi(ty.call_conv());
if abi.is_none() {
- assert_eq!(cursor.kind(), CXCursor_ObjCInstanceMethodDecl,
- "Invalid ABI for function signature")
+ assert_eq!(cursor.kind(),
+ CXCursor_ObjCInstanceMethodDecl,
+ "Invalid ABI for function signature")
}
Ok(Self::new(ret, args, ty.is_variadic(), abi))
diff --git a/src/ir/objc.rs b/src/ir/objc.rs
index ea2cc0c8..b3c3688b 100644
--- a/src/ir/objc.rs
+++ b/src/ir/objc.rs
@@ -1,10 +1,10 @@
//! Objective C types
+use super::context::BindgenContext;
+use super::function::FunctionSig;
use clang;
use clang_sys::CXChildVisit_Continue;
use clang_sys::CXCursor_ObjCInstanceMethodDecl;
-use super::context::BindgenContext;
-use super::function::FunctionSig;
/// Objective C interface as used in TypeKind
///