We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6188068 commit cf12498Copy full SHA for cf12498
graphql_client_cli/src/generate.rs
@@ -138,12 +138,11 @@ fn format(code: &str) -> CliResult<String> {
138
139
let output = child.wait_with_output()?;
140
141
- if !output.status.success() {
142
- panic!(
143
- "rustfmt error\n\n{}",
144
- String::from_utf8_lossy(&output.stderr)
145
- );
146
- }
+ assert!(
+ output.status.success(),
+ "rustfmt error\n\n{}",
+ String::from_utf8_lossy(&output.stderr)
+ );
147
148
Ok(String::from_utf8(output.stdout)?)
149
}
0 commit comments