use std.meta.eql for equality
This commit is contained in:
parent
620608964f
commit
434b0e07d0
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ fn evaluateExpression(
|
||||||
return std.mem.eql(u8, lhs, rhs);
|
return std.mem.eql(u8, lhs, rhs);
|
||||||
} else if (comptime std.meta.trait.isContainer(T) and @hasDecl(T, "eql")) {
|
} else if (comptime std.meta.trait.isContainer(T) and @hasDecl(T, "eql")) {
|
||||||
return T.eql(lhs, rhs);
|
return T.eql(lhs, rhs);
|
||||||
} else return lhs == rhs;
|
} else return std.meta.eql(lhs, rhs);
|
||||||
},
|
},
|
||||||
.builtin => |call| switch (call.*) {
|
.builtin => |call| switch (call.*) {
|
||||||
.isTag => |hdr| {
|
.isTag => |hdr| {
|
||||||
|
|
Loading…
Reference in a new issue