File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -141,16 +141,16 @@ impl ParseCallbacks for MacroCallback {
141
141
info : & bindgen:: callbacks:: AttributeInfo < ' _ > ,
142
142
) -> Vec < String > {
143
143
if info. name == "Test" {
144
- assert ! ( info. kind == AttributeItemKind :: Struct ) ;
145
- return vec ! [ "#[cfg_attr(test, derive(PartialOrd))]" . into( ) ] ;
144
+ assert_eq ! ( info. kind, AttributeItemKind :: Struct ) ;
145
+ vec ! [ "#[cfg_attr(test, derive(PartialOrd))]" . into( ) ]
146
146
} else if info. name == "coord" {
147
- assert ! (
148
- info. kind ==
149
- AttributeItemKind :: Function ( FunctionKind :: Function )
147
+ assert_eq ! (
148
+ info. kind,
149
+ AttributeItemKind :: Function ( FunctionKind :: Function )
150
150
) ;
151
- return vec ! [ "#[must_use]" . into( ) ] ;
151
+ vec ! [ "#[must_use]" . into( ) ]
152
152
}
153
- return vec ! [ ] ;
153
+ vec ! [ ]
154
154
}
155
155
}
156
156
You can’t perform that action at this time.
0 commit comments