From 6eb5e2315b4582cbac56bcc9a89984e116389514 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 29 Dec 2023 11:10:05 +0000 Subject: [PATCH] Temporarily squelch some warnings. I _know_ all those things are unused - I haven't finished writing the program yet. Shut up about them until I'm done! --- src/client.rs | 1 + src/tui.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/client.rs b/src/client.rs index c5c9e62..91111dd 100644 --- a/src/client.rs +++ b/src/client.rs @@ -67,6 +67,7 @@ impl Req { } } + #[allow(unused)] // FIXME: remove this once we start using it fn post(url_suffix: &str) -> Self { Req { method: reqwest::Method::POST, diff --git a/src/tui.rs b/src/tui.rs index 7602efc..90f765d 100644 --- a/src/tui.rs +++ b/src/tui.rs @@ -211,6 +211,9 @@ impl Tui { }; let result = tui.main_loop(); + let _ = &tui.subthread_sender; // FIXME: this just suppresses a warning + let _ = &tui.client; // FIXME: this just suppresses a warning + disable_raw_mode()?; stdout().execute(LeaveAlternateScreen)?; -- 2.30.2