Skip to content

Remove stray println! from merge code#1034

Open
danieleades wants to merge 1 commit into
oxidecomputer:mainfrom
danieleades:fix/merge-println
Open

Remove stray println! from merge code#1034
danieleades wants to merge 1 commit into
oxidecomputer:mainfrom
danieleades:fix/merge-println

Conversation

@danieleades

Copy link
Copy Markdown
Contributor

typify-impl/src/merge.rs contained a leftover debug println! that dumps the raw subschema JSON to stdout whenever an if/then/else schema is encountered, polluting the stdout of any build using the macro or CLI. This folds that JSON into the unimplemented! panic message instead, so the diagnostic is preserved where it is actually seen. No functional change otherwise.

Fold the schema JSON into the unimplemented! panic message instead of
printing it to stdout, so library consumers (proc-macro and CLI) don't
get raw JSON noise on stdout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant