ref: omit capture instead of dropping
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 49s
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 49s
This commit is contained in:
+1
-1
@@ -821,7 +821,7 @@ pub fn Button(Model: type, Event: type, Queue: type) fn (meta.FieldEnum(Event))
|
||||
const err_msg = "Unexpected type for the associated input completion event to trigger. Only `void` is allowed.";
|
||||
// TODO supported nested tagged unions to be also be used for triggering if the enum is then still of `void`type!
|
||||
switch (@typeInfo(@FieldType(Event, @tagName(accept_event)))) {
|
||||
.void => |_| {},
|
||||
.void => {},
|
||||
else => @compileError(err_msg),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user