summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}
}