We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 493f693 commit f211477Copy full SHA for f211477
tasks/ast_codegen/src/main.rs
@@ -248,7 +248,7 @@ fn main() -> std::result::Result<(), Box<dyn std::error::Error>> {
248
cargo_fmt(".")?;
249
}
250
251
- if let Some(schema_path) = cli_options.schema {
+ if let CliOptions { schema: Some(schema_path), dry_run: false, .. } = cli_options {
252
let path = schema_path.to_str().expect("invalid path for schema output.");
253
let schema = serde_json::to_string_pretty(&schema).map_err(|e| e.to_string())?;
254
write_all_to(schema.as_bytes(), path)?;
0 commit comments