diff --git a/xtask/src/docs/mod.rs b/xtask/src/docs/mod.rs
index c58e4953..e8d1fb73 100644
--- a/xtask/src/docs/mod.rs
+++ b/xtask/src/docs/mod.rs
@@ -25,7 +25,7 @@ pub fn docs() -> Result<(), anyhow::Error> {
header_path.push("header.html");
let mut header = fs::File::create(&header_path).expect("can't create header.html");
header
- .write(r#""#.as_bytes())
+ .write_all(r#""#.as_bytes())
.expect("can't write header.html contents");
header.flush().expect("couldn't flush contents");
@@ -78,7 +78,7 @@ pub fn docs() -> Result<(), anyhow::Error> {
let mut robots = fs::File::create("site/robots.txt").expect("can't create robots.txt");
robots
- .write(
+ .write_all(
indoc! {r#"
User-Agent:*
Disallow: /
@@ -89,7 +89,7 @@ pub fn docs() -> Result<(), anyhow::Error> {
let mut index = fs::File::create("site/index.html").expect("can't create index.html");
index
- .write(
+ .write_all(
indoc! {r#"