Skip to content

Commit

Permalink
fix: resolve compiler complaints (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm authored Mar 15, 2024
1 parent 2c70e05 commit 0cf2108
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions analyzer/psi/search/common.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion testing/TestFixture.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0cf2108

Please sign in to comment.