xtask: fix linting warnings on docs()

pull/321/head
Davide Bertola 2 years ago
parent 2680693783
commit 7f33d67e8c

@ -25,7 +25,7 @@ pub fn docs() -> Result<(), anyhow::Error> {
header_path.push("header.html"); header_path.push("header.html");
let mut header = fs::File::create(&header_path).expect("can't create header.html"); let mut header = fs::File::create(&header_path).expect("can't create header.html");
header header
.write(r#"<meta name="robots" content="noindex">"#.as_bytes()) .write_all(r#"<meta name="robots" content="noindex">"#.as_bytes())
.expect("can't write header.html contents"); .expect("can't write header.html contents");
header.flush().expect("couldn't flush 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"); let mut robots = fs::File::create("site/robots.txt").expect("can't create robots.txt");
robots robots
.write( .write_all(
indoc! {r#" indoc! {r#"
User-Agent:* User-Agent:*
Disallow: / 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"); let mut index = fs::File::create("site/index.html").expect("can't create index.html");
index index
.write( .write_all(
indoc! {r#" indoc! {r#"
<html> <html>
<meta name="robots" content="noindex"> <meta name="robots" content="noindex">

Loading…
Cancel
Save