diff --git a/crates/dagger-codegen/src/functions.rs b/crates/dagger-codegen/src/functions.rs index 8bbc40e..0cbc7ba 100644 --- a/crates/dagger-codegen/src/functions.rs +++ b/crates/dagger-codegen/src/functions.rs @@ -153,6 +153,7 @@ impl From<&TypeRef> for Scalar { } } +#[allow(dead_code)] pub fn get_type_from_name<'t>(types: &'t [FullType], name: &'t str) -> Option<&'t FullType> { types .into_iter() @@ -258,6 +259,7 @@ pub fn input_values_has_optionals(input_values: &[&InputValue]) -> bool { > 0 } +#[allow(dead_code)] pub fn input_values_is_empty(input_values: &[InputValue]) -> bool { input_values.len() > 0 } diff --git a/crates/dagger-codegen/src/lib.rs b/crates/dagger-codegen/src/lib.rs index 4ca63cd..7d89de1 100644 --- a/crates/dagger-codegen/src/lib.rs +++ b/crates/dagger-codegen/src/lib.rs @@ -1,3 +1,5 @@ +#![deny(warnings)] + mod functions; mod generator; pub mod rust; diff --git a/crates/dagger-core/src/downloader.rs b/crates/dagger-core/src/downloader.rs index 786fd87..794490c 100644 --- a/crates/dagger-core/src/downloader.rs +++ b/crates/dagger-core/src/downloader.rs @@ -1,6 +1,6 @@ use std::{ fs::File, - io::{copy, Read, Write}, + io::{copy, Write}, os::unix::prelude::PermissionsExt, path::PathBuf, }; diff --git a/crates/dagger-core/src/introspection.rs b/crates/dagger-core/src/introspection.rs index 87a93ad..ee12b32 100644 --- a/crates/dagger-core/src/introspection.rs +++ b/crates/dagger-core/src/introspection.rs @@ -241,6 +241,7 @@ pub struct SchemaTypes { pub full_type: FullType, } +#[allow(dead_code)] #[derive(Clone, Debug, Deserialize)] #[serde(rename_all = "camelCase")] pub struct SchemaDirectivesArgs { @@ -257,6 +258,7 @@ pub struct SchemaDirectives { pub args: Option>>, } +#[allow(dead_code)] #[derive(Clone, Debug, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Schema { diff --git a/crates/dagger-core/src/lib.rs b/crates/dagger-core/src/lib.rs index d765ba1..7a10530 100644 --- a/crates/dagger-core/src/lib.rs +++ b/crates/dagger-core/src/lib.rs @@ -1,3 +1,5 @@ +#![deny(warnings)] + pub mod cli_session; pub mod config; pub mod connect_params; diff --git a/crates/dagger-sdk/src/lib.rs b/crates/dagger-sdk/src/lib.rs index 12fc359..aac6f23 100644 --- a/crates/dagger-sdk/src/lib.rs +++ b/crates/dagger-sdk/src/lib.rs @@ -1,3 +1,5 @@ +#![deny(warnings)] + mod client; mod gen; mod querybuilder;