Commit 0141c6bd authored by Günther Wagner's avatar Günther Wagner

Fixed code style

parent 6a0dd40e
Pipeline #180233 passed with stage
in 46 minutes and 16 seconds
......@@ -47,7 +47,7 @@ static void
rust_analyzer_completion_provider_load (IdeCompletionProvider *self,
IdeContext *context)
{
RustAnalyzerService *service = NULL;
RustAnalyzerService *service;
g_assert (RUST_IS_ANALYZER_COMPLETION_PROVIDER (self));
g_assert (IDE_IS_CONTEXT (context));
......
......@@ -229,7 +229,7 @@ rust_analyzer_service_lsp_started (IdeSubprocessSupervisor *supervisor,
IdeSubprocess *subprocess,
gpointer user_data)
{
RustAnalyzerService *self = RUST_ANALYZER_SERVICE (user_data);
RustAnalyzerService *self = user_data;
g_autoptr(GIOStream) io_stream = NULL;
GInputStream *input;
GOutputStream *output;
......@@ -260,7 +260,8 @@ static gboolean
rust_analyzer_service_check_rust_analyzer_bin (RustAnalyzerService *self)
{
/* Check if `rust-analyzer` can be found on PATH or if there is an executable
in typical location */
* in typical location
*/
g_autoptr(GFile) rust_analyzer_bin_file = NULL;
g_autofree gchar *rust_analyzer_bin = NULL;
g_autoptr(GFileInfo) file_info = NULL;
......
......@@ -106,17 +106,18 @@ _download_lsp (GObject *source_object,
gpointer user_data)
{
g_autoptr(IdeTask) task = IDE_TASK (user_data);
SoupRequest *request = SOUP_REQUEST (source_object);
g_autoptr(GFile) file = NULL;
g_autoptr(GError) error = NULL;
SoupRequest *request = (SoupRequest *)source_object;
GInputStream *stream = NULL;
DownloadData *data;
IdeTransfer *transfer = IDE_TRANSFER (ide_task_get_task_data (task));
IdeTransfer *transfer = ide_task_get_task_data (task);
IDE_ENTRY;
g_return_if_fail (SOUP_IS_REQUEST (request));
g_return_if_fail (IDE_IS_TASK (task));
g_return_if_fail (IDE_IS_TRANSFER (transfer));
stream = soup_request_send_finish (request, result, &error);
if (error != NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment