From 14bbc6d1dfaa25627ccc508d2f771f5a60864e1c Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Fri, 15 Mar 2024 12:46:34 +0100 Subject: [PATCH] fix: compiler complaints --- analyzer/psi/search/common.v | 4 ++-- testing/TestFixture.v | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/analyzer/psi/search/common.v b/analyzer/psi/search/common.v index 3a372235..08a18beb 100644 --- a/analyzer/psi/search/common.v +++ b/analyzer/psi/search/common.v @@ -43,7 +43,7 @@ fn is_implemented(iface_methods []psi.PsiElement, iface_fields []psi.PsiElement, for iface_method in iface_methods { if iface_method is psi.InterfaceMethodDeclaration { - symbol_method := symbol_methods_set[iface_method.fingerprint()] + symbol_method := symbol_methods_set[iface_method.fingerprint()] or { return false } if !is_method_compatible(*iface_method, symbol_method) { return false } @@ -52,7 +52,7 @@ fn is_implemented(iface_methods []psi.PsiElement, iface_fields []psi.PsiElement, for iface_field in iface_fields { if iface_field is psi.FieldDeclaration { - symbol_field := symbol_fields_set[iface_field.name()] + symbol_field := symbol_fields_set[iface_field.name()] or { return false } if !is_field_compatible(*iface_field, symbol_field) { return false } diff --git a/testing/TestFixture.v b/testing/TestFixture.v index 626f1327..5237d90a 100644 --- a/testing/TestFixture.v +++ b/testing/TestFixture.v @@ -35,7 +35,7 @@ pub fn new_fixture() &Fixture { indexing_mng := analyzer.IndexingManager.new() mut ls := server.LanguageServer.new(indexing_mng) - stream := &client.TestStream{} + mut stream := &client.TestStream{} mut jsonprc_server := &jsonrpc.Server{ stream: stream handler: ls