From 095b9110b5e4e166c86501a1f0603cf626a48127 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 8 Mar 2021 21:25:44 +0300 Subject: Unused params --- xtask/src/codegen/gen_diagnostic_docs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xtask/src/codegen/gen_diagnostic_docs.rs') diff --git a/xtask/src/codegen/gen_diagnostic_docs.rs b/xtask/src/codegen/gen_diagnostic_docs.rs index a2561817b..2504e09ef 100644 --- a/xtask/src/codegen/gen_diagnostic_docs.rs +++ b/xtask/src/codegen/gen_diagnostic_docs.rs @@ -7,13 +7,13 @@ use crate::{ project_root, rust_files, Result, }; -pub(crate) fn generate_diagnostic_docs(mode: Mode) -> Result<()> { +pub(crate) fn generate_diagnostic_docs() -> Result<()> { let diagnostics = Diagnostic::collect()?; let contents = diagnostics.into_iter().map(|it| it.to_string()).collect::>().join("\n\n"); let contents = format!("//{}\n{}\n", PREAMBLE, contents.trim()); let dst = project_root().join("docs/user/generated_diagnostic.adoc"); - codegen::update(&dst, &contents, mode)?; + codegen::update(&dst, &contents, Mode::Overwrite)?; Ok(()) } -- cgit v1.2.3