From fcce1bc4882854ead287e9e7f901fc3fbf7731a6 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Thu, 22 Jun 2023 18:06:52 +0200 Subject: [PATCH] Fixup xtask compilation --- crates/xtask/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/xtask/src/main.rs b/crates/xtask/src/main.rs index 881a65fd38..38e5658ce7 100644 --- a/crates/xtask/src/main.rs +++ b/crates/xtask/src/main.rs @@ -7,14 +7,14 @@ use clap::Parser; use schemars::schema_for; use theme::Theme; -fn build_themes(mut out_dir: PathBuf, file_name: PathBuf) -> Result<()> { +fn build_themes(out_dir: PathBuf, file_name: PathBuf) -> Result<()> { let theme = schema_for!(Theme); let output = serde_json::to_string_pretty(&theme)?; std::fs::create_dir(&out_dir)?; let mut file_path = out_dir; - out_dir.push(file_name); + file_path.push(file_name); std::fs::write(file_path, output)?;