Skip to content

Commit 8e6a699

Browse files
varphoneemilio
authored andcommitted
Fix “warning: irrefutable if-let pattern” on add to output_vector
1 parent 4a75b21 commit 8e6a699

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,8 @@ impl Builder {
385385
output_vector.push(prefix.clone());
386386
}
387387

388-
if let prefix = &self.options.anon_fields_prefix {
389-
output_vector.push("--anon-fields-prefix".into());
390-
output_vector.push(prefix.clone());
391-
}
388+
output_vector.push("--anon-fields-prefix".into());
389+
output_vector.push(self.options.anon_fields_prefix.clone());
392390

393391
if self.options.emit_ast {
394392
output_vector.push("--emit-clang-ast".into());

0 commit comments

Comments
 (0)