Skip to content

Commit a2a5359

Browse files
committed
fix(tests): remove parse_meta
1 parent 133ac06 commit a2a5359

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

bindgen-integration/src/lib.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,10 @@ fn test_custom_fn_attribute() {
319319
if let Item::Fn(item_fn) = item {
320320
if item_fn.sig.ident == "coord" {
321321
found_coord = true;
322-
has_must_use = item_fn.attrs.iter().any(|attr| {
323-
if let Ok(meta) = attr.parse_meta() {
324-
meta.path().is_ident("must_use")
325-
} else {
326-
false
327-
}
328-
});
322+
has_must_use = item_fn
323+
.attrs
324+
.iter()
325+
.any(|attr| attr.path().is_ident("must_use"));
329326
}
330327
}
331328
}

0 commit comments

Comments
 (0)