Skip to content

Commit c0897e1

Browse files
committed
Run cargo fmt
1 parent 43ea46d commit c0897e1

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

src/clang.rs

+13-4
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,10 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
14641464
type_to_str(ty.kind())));
14651465
}
14661466
if let Some(ty) = c.ret_type() {
1467-
print_indent(depth, format!(" {}ret-type = {}", prefix, type_to_str(ty.kind())));
1467+
print_indent(depth,
1468+
format!(" {}ret-type = {}",
1469+
prefix,
1470+
type_to_str(ty.kind())));
14681471
}
14691472

14701473
if let Some(refd) = c.referenced() {
@@ -1473,7 +1476,9 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
14731476
print_cursor(depth,
14741477
String::from(prefix) + "referenced.",
14751478
&refd);
1476-
print_cursor(depth, String::from(prefix) + "referenced.", &refd);
1479+
print_cursor(depth,
1480+
String::from(prefix) + "referenced.",
1481+
&refd);
14771482
}
14781483
}
14791484

@@ -1483,7 +1488,9 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
14831488
print_cursor(depth,
14841489
String::from(prefix) + "canonical.",
14851490
&canonical);
1486-
print_cursor(depth, String::from(prefix) + "canonical.", &canonical);
1491+
print_cursor(depth,
1492+
String::from(prefix) + "canonical.",
1493+
&canonical);
14871494
}
14881495

14891496
if let Some(specialized) = c.specialized() {
@@ -1492,7 +1499,9 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
14921499
print_cursor(depth,
14931500
String::from(prefix) + "specialized.",
14941501
&specialized);
1495-
print_cursor(depth, String::from(prefix) + "specialized.", &specialized);
1502+
print_cursor(depth,
1503+
String::from(prefix) + "specialized.",
1504+
&specialized);
14961505
}
14971506
}
14981507
}

src/ir/function.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,9 @@ impl FunctionSig {
229229
let abi = get_abi(ty.call_conv());
230230

231231
if abi.is_none() {
232-
assert_eq!(cursor.kind(), CXCursor_ObjCInstanceMethodDecl,
233-
"Invalid ABI for function signature")
232+
assert_eq!(cursor.kind(),
233+
CXCursor_ObjCInstanceMethodDecl,
234+
"Invalid ABI for function signature")
234235
}
235236

236237
Ok(Self::new(ret, args, ty.is_variadic(), abi))

src/ir/objc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//! Objective C types
22
3+
use super::context::BindgenContext;
4+
use super::function::FunctionSig;
35
use clang;
46
use clang_sys::CXChildVisit_Continue;
57
use clang_sys::CXCursor_ObjCInstanceMethodDecl;
6-
use super::context::BindgenContext;
7-
use super::function::FunctionSig;
88

99
/// Objective C interface as used in TypeKind
1010
///

0 commit comments

Comments
 (0)