From ee6e04763c4f2971abfb58f23abf5569993855c6 Mon Sep 17 00:00:00 2001 From: Liam <33645555+lj3954@users.noreply.github.com> Date: Wed, 29 May 2024 18:10:33 -0700 Subject: [PATCH] Disable incorrect dead code detection --- quickget_ci/src/store_data.rs | 1 + quickget_ci/src/utils.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/quickget_ci/src/store_data.rs b/quickget_ci/src/store_data.rs index a51f1cc..8ad2618 100644 --- a/quickget_ci/src/store_data.rs +++ b/quickget_ci/src/store_data.rs @@ -145,6 +145,7 @@ pub trait Distro { } pub trait ToOS { + #![allow(dead_code)] async fn to_os(&self) -> OS; } diff --git a/quickget_ci/src/utils.rs b/quickget_ci/src/utils.rs index 85c8ba1..fcaaf68 100644 --- a/quickget_ci/src/utils.rs +++ b/quickget_ci/src/utils.rs @@ -3,6 +3,7 @@ use reqwest::Client; use tokio::spawn; pub async fn capture_page(url: &str) -> Option { + #![allow(dead_code)] CLIENT.get(url).send().await.ok()?.text().await.ok() }