[gnome-builder/wip/gtk4-port: 498/736] plugins/rust-analyzer: fix completion provider compilation




commit 704bd4b9b98f9c6f69fa7731c1406725d028f475
Author: Christian Hergert <chergert redhat com>
Date:   Thu Apr 7 11:03:07 2022 -0700

    plugins/rust-analyzer: fix completion provider compilation

 src/plugins/rust-analyzer/rust-analyzer-completion-provider.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/rust-analyzer/rust-analyzer-completion-provider.c 
b/src/plugins/rust-analyzer/rust-analyzer-completion-provider.c
index f5224e929..3c322689c 100644
--- a/src/plugins/rust-analyzer/rust-analyzer-completion-provider.c
+++ b/src/plugins/rust-analyzer/rust-analyzer-completion-provider.c
@@ -29,9 +29,11 @@ struct _RustAnalyzerCompletionProvider
 G_DEFINE_FINAL_TYPE (RustAnalyzerCompletionProvider, rust_analyzer_completion_provider, 
IDE_TYPE_LSP_COMPLETION_PROVIDER)
 
 static void
-rust_analyzer_completion_provider_prepare (IdeCompletionProvider *self)
+rust_analyzer_completion_provider_load (IdeLspCompletionProvider *provider)
 {
+  RustAnalyzerCompletionProvider *self = (RustAnalyzerCompletionProvider *)provider;
   RustAnalyzerService *service;
+  IdeContext *context;
 
   g_assert (RUST_IS_ANALYZER_COMPLETION_PROVIDER (self));
 
@@ -46,7 +48,7 @@ rust_analyzer_completion_provider_class_init (RustAnalyzerCompletionProviderClas
 {
   IdeLspCompletionProviderClass *provider_class = IDE_LSP_COMPLETION_PROVIDER_CLASS (klass);
 
-  provider_class->prepare = rust_analyzer_completion_provider_prepare;
+  provider_class->load = rust_analyzer_completion_provider_load;
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]