mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-16 00:47:39 +03:00
Fixup xtask compilation
This commit is contained in:
parent
b430be5bc6
commit
fcce1bc488
@ -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)?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user