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 4ffbd22 commit 4730fa1Copy full SHA for 4730fa1
graphql_client_cli/src/generate.rs
@@ -125,12 +125,11 @@ fn format(code: &str) -> CliResult<String> {
125
126
let output = child.wait_with_output()?;
127
128
- if !output.status.success() {
129
- panic!(
130
- "rustfmt error\n\n{}",
131
- String::from_utf8_lossy(&output.stderr)
132
- );
133
- }
+ assert!(
+ output.status.success(),
+ "rustfmt error\n\n{}",
+ String::from_utf8_lossy(&output.stderr)
+ );
134
135
Ok(String::from_utf8(output.stdout)?)
136
}
0 commit comments