Skip to content

Commit 514846d

Browse files
committed
Don't break the build so fast for older rust versions.
1 parent eede09e commit 514846d

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ name = "bindgen"
1313
readme = "README.md"
1414
repository = "https://github.com/servo/rust-bindgen"
1515
documentation = "https://docs.rs/bindgen"
16-
version = "0.21.0"
16+
version = "0.21.1"
1717
build = "build.rs"
1818

1919
[badges]

src/clang.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,20 +1320,20 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
13201320

13211321
if let Some(refd) = c.referenced() {
13221322
if refd != *c {
1323-
println!();
1323+
println!("");
13241324
print_cursor(depth, String::from(prefix) + "referenced.", &refd);
13251325
}
13261326
}
13271327

13281328
let canonical = c.canonical();
13291329
if canonical != *c {
1330-
println!();
1330+
println!("");
13311331
print_cursor(depth, String::from(prefix) + "canonical.", &canonical);
13321332
}
13331333

13341334
if let Some(specialized) = c.specialized() {
13351335
if specialized != *c {
1336-
println!();
1336+
println!("");
13371337
print_cursor(depth, String::from(prefix) + "specialized.", &specialized);
13381338
}
13391339
}
@@ -1364,56 +1364,56 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
13641364

13651365
let canonical = ty.canonical_type();
13661366
if canonical != *ty {
1367-
println!();
1367+
println!("");
13681368
print_type(depth, String::from(prefix) + "canonical.", &canonical);
13691369
}
13701370

13711371
if let Some(pointee) = ty.pointee_type() {
13721372
if pointee != *ty {
1373-
println!();
1373+
println!("");
13741374
print_type(depth, String::from(prefix) + "pointee.", &pointee);
13751375
}
13761376
}
13771377

13781378
if let Some(elem) = ty.elem_type() {
13791379
if elem != *ty {
1380-
println!();
1380+
println!("");
13811381
print_type(depth, String::from(prefix) + "elements.", &elem);
13821382
}
13831383
}
13841384

13851385
if let Some(ret) = ty.ret_type() {
13861386
if ret != *ty {
1387-
println!();
1387+
println!("");
13881388
print_type(depth, String::from(prefix) + "return.", &ret);
13891389
}
13901390
}
13911391

13921392
let named = ty.named();
13931393
if named != *ty && named.is_valid() {
1394-
println!();
1394+
println!("");
13951395
print_type(depth, String::from(prefix) + "named.", &named);
13961396
}
13971397
}
13981398

13991399
print_indent(depth, "(");
14001400
print_cursor(depth, "", c);
14011401

1402-
println!();
1402+
println!("");
14031403
let ty = c.cur_type();
14041404
print_type(depth, "type.", &ty);
14051405

14061406
let declaration = ty.declaration();
14071407
if declaration != *c && declaration.kind() != CXCursor_NoDeclFound {
1408-
println!();
1408+
println!("");
14091409
print_cursor(depth, "type.declaration.", &declaration);
14101410
}
14111411

14121412
// Recurse.
14131413
let mut found_children = false;
14141414
c.visit(|s| {
14151415
if !found_children {
1416-
println!();
1416+
println!("");
14171417
found_children = true;
14181418
}
14191419
ast_dump(&s, depth + 1)

0 commit comments

Comments
 (0)