We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee4c0f1 commit 382f8f5Copy full SHA for 382f8f5
src/lib.rs
@@ -266,7 +266,7 @@ impl Config {
266
let out_dir = self.get_out_dir();
267
let src = out_dir.join("flag_check.c");
268
if !self.check_file_created {
269
- write!(fs::File::create(&src)?, "int main(void) {{ return 0; }}")?;
+ try!(write!(try!(fs::File::create(&src)), "int main(void) {{ return 0; }}"));
270
self.check_file_created = true;
271
}
272
@@ -284,7 +284,7 @@ impl Config {
284
command_add_output_file(&mut cmd, &obj, target.contains("msvc"), false);
285
cmd.arg(&src);
286
287
- let output = cmd.output()?;
+ let output = try!(cmd.output());
288
Ok(output.stderr.is_empty())
289
290
0 commit comments