Skip to content

Commit

Permalink
Disable incorrect dead code detection
Browse files Browse the repository at this point in the history
  • Loading branch information
lj3954 committed May 30, 2024
1 parent bfacccf commit ee6e047
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions quickget_ci/src/store_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ pub trait Distro {
}

pub trait ToOS {
#![allow(dead_code)]
async fn to_os(&self) -> OS;
}

Expand Down
1 change: 1 addition & 0 deletions quickget_ci/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use reqwest::Client;
use tokio::spawn;

pub async fn capture_page(url: &str) -> Option<String> {
#![allow(dead_code)]
CLIENT.get(url).send().await.ok()?.text().await.ok()
}

Expand Down

0 comments on commit ee6e047

Please sign in to comment.