From 66cfa409347fd6bf982dcc6831b788b969bfcaa5 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sat, 5 Jun 2021 16:53:25 -0700 Subject: [PATCH] util/Module- only compare `id` in `.eql` --- src/util/module.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/module.zig b/src/util/module.zig index 2cbf34077bc77774c7970942cfa35d8c94310748..04df5928ef9679d67a223ef6192def94c132010c 100644 --- a/src/util/module.zig +++ b/src/util/module.zig @@ -41,7 +41,7 @@ pub const Module = struct { } pub fn eql(self: Module, another: Module) bool { - return std.mem.eql(u8, self.id, another.id) or std.mem.eql(u8, self.clean_path, another.clean_path); + return std.mem.eql(u8, self.id, another.id); } pub fn get_hash(self: Module, cdpath: []const u8) ![]const u8 { -- 2.54.0