Skip to content

Commit c8886d5

Browse files
xtask: Allow arrays in uefi-raw
1 parent cf0823d commit c8886d5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

xtask/src/check_raw.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ use syn::spanned::Spanned;
1616
use syn::token::Comma;
1717
use syn::{
1818
parenthesized, Abi, Attribute, Field, Fields, FieldsNamed, FieldsUnnamed, File, Item,
19-
ItemConst, ItemMacro, ItemStruct, ItemType, LitInt, ReturnType, Type, TypeBareFn, TypePtr,
20-
Visibility,
19+
ItemConst, ItemMacro, ItemStruct, ItemType, LitInt, ReturnType, Type, TypeArray, TypeBareFn,
20+
TypePtr, Visibility,
2121
};
2222
use walkdir::WalkDir;
2323

@@ -195,6 +195,7 @@ fn is_efiapi(f: &TypeBareFn) -> bool {
195195
/// Validate a type (used for fields, arguments, and return types).
196196
fn check_type(ty: &Type, src: &Path) -> Result<(), Error> {
197197
match ty {
198+
Type::Array(TypeArray { elem, .. }) => check_type(elem, src),
198199
Type::BareFn(f) => check_fn_ptr(f, src),
199200
Type::Never(_) | Type::Path(_) => {
200201
// Allow.

0 commit comments

Comments
 (0)