From 65891f54ed5bff87be4ba768d8788a3d09f2cbee Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 30 Jul 2020 19:35:16 +0300 Subject: [PATCH] v.util.suggestions: fix hash.crc32.Crc32 case --- vlib/v/util/suggestions.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/util/suggestions.v b/vlib/v/util/suggestions.v index a0849e362b..b64c8e101f 100644 --- a/vlib/v/util/suggestions.v +++ b/vlib/v/util/suggestions.v @@ -38,11 +38,11 @@ pub fn new_suggestion(wanted string, possibilities []string) Suggestion { } pub fn (mut s Suggestion) add(val string) { - if val == s.wanted { + if val in [ s.wanted, s.swanted ] { return } sval := short_module_name(val) - if sval == s.wanted { + if sval in [ s.wanted, s.swanted ] { return } s.known << Possibility{