Commit d8a22a7
Fix clippy::collapsible_match in ObjC interface parsing
`cargo clippy -- -D warnings` was failing on stable with a
collapsible_match lint in ObjCInterface::from_ty: a nested `if` inside
a `CXCursor_ObjCClassRef` match arm should be expressed as a match
guard. Collapse it as suggested. No behaviour change.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 937b8d0 commit d8a22a7
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
0 commit comments