File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -154,13 +154,13 @@ pub fn main() {
154
154
155
155
// Input header
156
156
let header = args. get_str ( "<input-header>" ) ;
157
- if header != "" {
157
+ if !header . is_empty ( ) {
158
158
builder = builder. header ( header) ;
159
159
}
160
160
161
161
// Output file or stdout
162
162
let output = args. get_str ( "--output" ) ;
163
- let out = if output != "" {
163
+ let out = if !output . is_empty ( ) {
164
164
let path = path:: Path :: new ( output) ;
165
165
let file = fs:: File :: create ( path) . expect ( "Opening output file failed." ) ;
166
166
Box :: new ( io:: BufWriter :: new ( file) ) as Box < io:: Write >
@@ -170,7 +170,7 @@ pub fn main() {
170
170
171
171
// Emit C/C++ type uses file for testing
172
172
let dummy_uses = args. get_str ( "--dummy-uses" ) ;
173
- if dummy_uses != "" {
173
+ if !dummy_uses . is_empty ( ) {
174
174
builder = builder. dummy_uses ( dummy_uses) ;
175
175
}
176
176
You can’t perform that action at this time.
0 commit comments