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
@@ -126,7 +126,7 @@ pub fn isTaggedUnion(comptime T: type) bool {
|
||||
/// Determine whether the provided type `T` is a `struct`.
|
||||
pub fn isStruct(comptime T: type) bool {
|
||||
return switch (@typeInfo(T)) {
|
||||
.@"struct" => |_| true,
|
||||
.@"struct" => true,
|
||||
else => false,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user