Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fixup xtask compilation

Piotr Osiewiczfcce1bc48828
diff --git a/crates/xtask/src/main.rs b/crates/xtask/src/main.rs
index 881a65fd389..38e5658ce7e 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)?;