chiark / gitweb /
Temporarily squelch some warnings.
authorSimon Tatham <anakin@pobox.com>
Fri, 29 Dec 2023 11:10:05 +0000 (11:10 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 29 Dec 2023 11:10:05 +0000 (11:10 +0000)
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
src/tui.rs

index c5c9e62c61b0b83491353edb380821d37c7b2704..91111dd2f2be5ab1e017c477886684612c808901 100644 (file)
@@ -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,
index 7602efc1e69c18e25f79626ede5a5573e7d98f9c..90f765de59532c9af0597f829151dcdede148a87 100644 (file)
@@ -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)?;