File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -112,15 +112,11 @@ fn try_main() -> Result<(), failure::Error> {
112
112
println ! ( "cargo:rustc-env=BINDINGS={}" , out_file_path. display( ) ) ;
113
113
114
114
// run rustfmt on the generated file - really handy for debugging
115
+ //
116
+ // This is opportunistic though so don't assert that it succeeds.
115
117
println ! ( "cargo:rerun-if-env-changed=WEBIDL_RUSTFMT_BINDINGS" ) ;
116
118
if env:: var ( "WEBIDL_RUSTFMT_BINDINGS" ) . ok ( ) != Some ( "0" . to_string ( ) ) {
117
- let status = Command :: new ( "rustfmt" )
118
- . arg ( & out_file_path)
119
- . status ( )
120
- . context ( "running rustfmt" ) ?;
121
- if !status. success ( ) {
122
- println ! ( "cargo:warning=rustfmt failed: {}" , status)
123
- }
119
+ drop ( Command :: new ( "rustfmt" ) . arg ( & out_file_path) . status ( ) ) ;
124
120
}
125
121
126
122
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments