mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-12 05:27:07 +00:00
Fixup xtask compilation
This commit is contained in:
parent
b430be5bc6
commit
fcce1bc488
1 changed files with 2 additions and 2 deletions
|
@ -7,14 +7,14 @@ use clap::Parser;
|
||||||
use schemars::schema_for;
|
use schemars::schema_for;
|
||||||
use theme::Theme;
|
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 theme = schema_for!(Theme);
|
||||||
let output = serde_json::to_string_pretty(&theme)?;
|
let output = serde_json::to_string_pretty(&theme)?;
|
||||||
|
|
||||||
std::fs::create_dir(&out_dir)?;
|
std::fs::create_dir(&out_dir)?;
|
||||||
|
|
||||||
let mut file_path = out_dir;
|
let mut file_path = out_dir;
|
||||||
out_dir.push(file_name);
|
file_path.push(file_name);
|
||||||
|
|
||||||
std::fs::write(file_path, output)?;
|
std::fs::write(file_path, output)?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue