[gnome-builder] nitpick: declaration-after-statement
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] nitpick: declaration-after-statement
- Date: Mon, 11 May 2020 23:42:04 +0000 (UTC)
commit 97548cf710c75015e59cb3fa258473963105685c
Author: Günther Wagner <info gunibert de>
Date: Mon May 4 17:54:35 2020 +0200
nitpick: declaration-after-statement
src/plugins/rust-analyzer/rust-analyzer-transfer.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/rust-analyzer/rust-analyzer-transfer.c
b/src/plugins/rust-analyzer/rust-analyzer-transfer.c
index 46b7bc7cc..f5776e579 100644
--- a/src/plugins/rust-analyzer/rust-analyzer-transfer.c
+++ b/src/plugins/rust-analyzer/rust-analyzer-transfer.c
@@ -89,10 +89,11 @@ _download_lsp (GObject *source_object,
g_autoptr(GFile) file = NULL;
SoupRequest *request = SOUP_REQUEST (source_object);
GInputStream *stream = NULL;
+ DownloadData *data;
stream = soup_request_send_finish (request, result, NULL);
- DownloadData *data = g_slice_new0 (DownloadData);
+ data = g_slice_new0 (DownloadData);
data->filepath = g_build_filename (g_get_home_dir (), ".cargo", "bin", "rust-analyzer", NULL);
file = g_file_new_for_path (data->filepath);
data->transfer = IDE_TRANSFER (ide_task_get_task_data (task));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]