Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
feat: set internal warnings as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kjuulh committed Feb 25, 2023
1 parent f9e7af9 commit 5f9b3a1
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions crates/dagger-codegen/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
}
Expand Down
2 changes: 2 additions & 0 deletions crates/dagger-codegen/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![deny(warnings)]

mod functions;
mod generator;
pub mod rust;
Expand Down
2 changes: 1 addition & 1 deletion crates/dagger-core/src/downloader.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{
fs::File,
io::{copy, Read, Write},
io::{copy, Write},
os::unix::prelude::PermissionsExt,
path::PathBuf,
};
Expand Down
2 changes: 2 additions & 0 deletions crates/dagger-core/src/introspection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -257,6 +258,7 @@ pub struct SchemaDirectives {
pub args: Option<Vec<Option<SchemaDirectivesArgs>>>,
}

#[allow(dead_code)]
#[derive(Clone, Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Schema {
Expand Down
2 changes: 2 additions & 0 deletions crates/dagger-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![deny(warnings)]

pub mod cli_session;
pub mod config;
pub mod connect_params;
Expand Down
2 changes: 2 additions & 0 deletions crates/dagger-sdk/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![deny(warnings)]

mod client;
mod gen;
mod querybuilder;
Expand Down

0 comments on commit 5f9b3a1

Please sign in to comment.