[gnome-builder: 17/17] rust-analyzer: fix warning for IDE_ENTRY



commit d1aa2b0d40420d08931c4e91705ac37a8a431502
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jun 22 12:22:22 2020 -0700

    rust-analyzer: fix warning for IDE_ENTRY

 src/plugins/rust-analyzer/rust-analyzer-service.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/rust-analyzer/rust-analyzer-service.c 
b/src/plugins/rust-analyzer/rust-analyzer-service.c
index 2d7548607..3a1948e22 100644
--- a/src/plugins/rust-analyzer/rust-analyzer-service.c
+++ b/src/plugins/rust-analyzer/rust-analyzer-service.c
@@ -98,18 +98,18 @@ rust_analyzer_service_load_configuration (IdeLspClient *client,
   RustAnalyzerService *self = (RustAnalyzerService *)user_data;
   GVariant *ret = NULL;
 
+  IDE_ENTRY;
+
   g_assert (IDE_IS_LSP_CLIENT (client));
   g_assert (RUST_IS_ANALYZER_SERVICE (self));
 
-  IDE_ENTRY;
-
   ret = JSONRPC_MESSAGE_NEW_ARRAY ("{",
                                      "checkOnSave", "{",
                                        "command", JSONRPC_MESSAGE_PUT_STRING (self->cargo_command),
                                      "}",
                                    "}");
 
-  IDE_RETURN (ret);
+  IDE_RETURN (g_steal_pointer (&ret));
 }
 
 static void


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