Skip to content

Commit ed6e1ef

Browse files
committed
---
yaml --- r: 11611 b: refs/heads/master c: 2cdb662 h: refs/heads/master i: 11609: 01f6357 11607: 72844a3 v: v3
1 parent 53c6213 commit ed6e1ef

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: f8742b476f136e002627c68822d207315d9c9558
2+
refs/heads/master: 2cdb662022a7427f9eff569fc211b1aed6f632ec
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/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)