Commit f29a63c
bindgen: remove extra trailing space in check for --rust-edition flags (#3799)
The arguments would be passed as either `--rust-edition=2024` or
`--rust-edition`, `2024`, but either way the resulting entry from the
list comprehension on the right hand of the `not in` operator will
contain `"--rust-edition"` without the trailing space. This allows users
of the bindgen rules to specify their own explicit edition.
Tested:
Works in our private repo, and didn't without this patch.
Co-authored-by: Krasimir Georgiev <krasimir@google.com>1 parent 82462c8 commit f29a63c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| |||
0 commit comments