summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <ecoal95@gmail.com>2016-11-15 21:24:06 +0100
committerEmilio Cobos Álvarez <ecoal95@gmail.com>2016-11-16 00:47:11 +0100
commitb348e73b81f9b5fa350defe313810c2770063827 (patch)
tree46f1df2a29fcab52d1d64e0919ab337a334591c2
parent824f99a67721584b43544ed561236e6bbec24fed (diff)
Don't ignore errors in the test suite.
-rw-r--r--libbindgen/build.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/libbindgen/build.rs b/libbindgen/build.rs
index 228a7f22..98bb76a9 100644
--- a/libbindgen/build.rs
+++ b/libbindgen/build.rs
@@ -38,13 +38,14 @@ mod testgen {
.replace(|c| !char::is_alphanumeric(c), "_")
.replace("__", "_")
.to_lowercase();
- let _ = writeln!(dst, "test_header!(header_{}, {:?});",
- func, entry.path());
+ writeln!(dst, "test_header!(header_{}, {:?});",
+ func, entry.path()).unwrap();
}
_ => {}
}
}
- let _ = dst.flush();
+
+ dst.flush().unwrap();
}
}