Skip to content

Commit 1821029

Browse files
committed
rustdoc: Use write_all to ensure all content is written
1 parent 17a8cc5 commit 1821029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/doctest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pub(crate) fn generate_args_file(file_path: &Path, options: &RustdocOptions) ->
8080

8181
let content = content.join("\n");
8282

83-
file.write(content.as_bytes())
83+
file.write_all(content.as_bytes())
8484
.map_err(|error| format!("failed to write arguments to temporary file: {error:?}"))?;
8585
Ok(())
8686
}

0 commit comments

Comments
 (0)