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_assists_docs.rs | 4 ++-- xtask/src/codegen/gen_diagnostic_docs.rs | 4 ++-- xtask/src/codegen/gen_feature_docs.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'xtask/src/codegen') diff --git a/xtask/src/codegen/gen_assists_docs.rs b/xtask/src/codegen/gen_assists_docs.rs index c469b388d..a5af1331d 100644 --- a/xtask/src/codegen/gen_assists_docs.rs +++ b/xtask/src/codegen/gen_assists_docs.rs @@ -12,12 +12,12 @@ pub(crate) fn generate_assists_tests(mode: Mode) -> Result<()> { generate_tests(&assists, mode) } -pub(crate) fn generate_assists_docs(mode: Mode) -> Result<()> { +pub(crate) fn generate_assists_docs() -> Result<()> { let assists = Assist::collect()?; let contents = assists.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_assists.adoc"); - codegen::update(&dst, &contents, mode) + codegen::update(&dst, &contents, Mode::Overwrite) } #[derive(Debug)] 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(()) } diff --git a/xtask/src/codegen/gen_feature_docs.rs b/xtask/src/codegen/gen_feature_docs.rs index cad7ff477..8509fec26 100644 --- a/xtask/src/codegen/gen_feature_docs.rs +++ b/xtask/src/codegen/gen_feature_docs.rs @@ -7,12 +7,12 @@ use crate::{ project_root, rust_files, Result, }; -pub(crate) fn generate_feature_docs(mode: Mode) -> Result<()> { +pub(crate) fn generate_feature_docs() -> Result<()> { let features = Feature::collect()?; let contents = features.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_features.adoc"); - codegen::update(&dst, &contents, mode)?; + codegen::update(&dst, &contents, Mode::Overwrite)?; Ok(()) } -- cgit v1.2.3