From e2d32ede7621123a3db9d5e2cd3e7d276d0b5e2f Mon Sep 17 00:00:00 2001 From: kjuulh Date: Fri, 27 Jan 2023 08:33:46 +0100 Subject: [PATCH] allow dead_code --- src/downloader.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/downloader.rs b/src/downloader.rs index 31105bd..df83052 100644 --- a/src/downloader.rs +++ b/src/downloader.rs @@ -8,6 +8,7 @@ use eyre::Context; use platform_info::Uname; use tempfile::{tempfile, NamedTempFile}; +#[allow(dead_code)] #[derive(Clone)] pub struct Platform { pub os: String, @@ -32,12 +33,14 @@ impl Platform { } } +#[allow(dead_code)] pub struct TempFile { prefix: String, directory: PathBuf, file: File, } +#[allow(dead_code)] impl TempFile { pub fn new(prefix: &str, directory: &PathBuf) -> eyre::Result { let prefix = prefix.to_string(); @@ -53,16 +56,22 @@ impl TempFile { } } +#[allow(dead_code)] pub type CliVersion = String; +#[allow(dead_code)] pub struct Downloader { version: CliVersion, platform: Platform, } +#[allow(dead_code)] const DEFAULT_CLI_HOST: &str = "dl.dagger.io"; +#[allow(dead_code)] const CLI_BIN_PREFIX: &str = "dagger-"; +#[allow(dead_code)] const CLI_BASE_URL: &str = "https://dl.dagger.io/dagger/releases"; +#[allow(dead_code)] impl Downloader { pub fn new(version: CliVersion) -> eyre::Result { Ok(Self {