Skip to content

Commit 2cdb662

Browse files
committed
rustdoc: Remove some bogus error handling around process spawning
1 parent f8742b4 commit 2cdb662

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/rustdoc/markdown_writer.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,8 @@ fn pandoc_writer(config: config::config) -> writer {
7373
pandoc_cmd, pandoc_args, none, none,
7474
pipe_in.in, pipe_out.out, pipe_err.out);
7575

76-
if pid != -1 as ctypes::pid_t {
77-
let writer = io::fd_writer(pipe_in.out, false);
78-
writer.write_str(markdown);
79-
}
76+
let writer = io::fd_writer(pipe_in.out, false);
77+
writer.write_str(markdown);
8078

8179
os::close(pipe_in.in);
8280
os::close(pipe_out.out);
@@ -85,10 +83,6 @@ fn pandoc_writer(config: config::config) -> writer {
8583
os::close(pipe_out.in);
8684
os::close(pipe_err.in);
8785

88-
if pid == -1 as ctypes::pid_t {
89-
fail "failed to run pandoc";
90-
}
91-
9286
let status = run::waitpid(pid);
9387
#debug("pandoc result: %i", status);
9488
if status != 0 {

0 commit comments

Comments
 (0)