mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2024-11-22 15:22:13 +01:00
feat: set internal warnings as errors
This commit is contained in:
parent
f9e7af931d
commit
95834ce908
@ -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> {
|
pub fn get_type_from_name<'t>(types: &'t [FullType], name: &'t str) -> Option<&'t FullType> {
|
||||||
types
|
types
|
||||||
.into_iter()
|
.into_iter()
|
||||||
@ -258,6 +259,7 @@ pub fn input_values_has_optionals(input_values: &[&InputValue]) -> bool {
|
|||||||
> 0
|
> 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn input_values_is_empty(input_values: &[InputValue]) -> bool {
|
pub fn input_values_is_empty(input_values: &[InputValue]) -> bool {
|
||||||
input_values.len() > 0
|
input_values.len() > 0
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#![deny(warnings)]
|
||||||
|
|
||||||
mod functions;
|
mod functions;
|
||||||
mod generator;
|
mod generator;
|
||||||
pub mod rust;
|
pub mod rust;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use std::{
|
use std::{
|
||||||
fs::File,
|
fs::File,
|
||||||
io::{copy, Read, Write},
|
io::{copy, Write},
|
||||||
os::unix::prelude::PermissionsExt,
|
os::unix::prelude::PermissionsExt,
|
||||||
path::PathBuf,
|
path::PathBuf,
|
||||||
};
|
};
|
||||||
|
@ -241,6 +241,7 @@ pub struct SchemaTypes {
|
|||||||
pub full_type: FullType,
|
pub full_type: FullType,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
#[derive(Clone, Debug, Deserialize)]
|
#[derive(Clone, Debug, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct SchemaDirectivesArgs {
|
pub struct SchemaDirectivesArgs {
|
||||||
@ -257,6 +258,7 @@ pub struct SchemaDirectives {
|
|||||||
pub args: Option<Vec<Option<SchemaDirectivesArgs>>>,
|
pub args: Option<Vec<Option<SchemaDirectivesArgs>>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
#[derive(Clone, Debug, Deserialize)]
|
#[derive(Clone, Debug, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Schema {
|
pub struct Schema {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#![deny(warnings)]
|
||||||
|
|
||||||
pub mod cli_session;
|
pub mod cli_session;
|
||||||
pub mod config;
|
pub mod config;
|
||||||
pub mod connect_params;
|
pub mod connect_params;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#![deny(warnings)]
|
||||||
|
|
||||||
mod client;
|
mod client;
|
||||||
mod gen;
|
mod gen;
|
||||||
mod querybuilder;
|
mod querybuilder;
|
||||||
|
Loading…
Reference in New Issue
Block a user