diff --git a/crates/dagger-codegen/src/rust/templates/object_tmpl.rs b/crates/dagger-codegen/src/rust/templates/object_tmpl.rs index f3230aa..b0f8ea9 100644 --- a/crates/dagger-codegen/src/rust/templates/object_tmpl.rs +++ b/crates/dagger-codegen/src/rust/templates/object_tmpl.rs @@ -63,7 +63,7 @@ fn render_optional_arg(funcs: &CommonFunctions, field: &FullTypeFields) -> Optio .flatten(); let builder = rust::import("derive_builder", "Builder"); - let phantom_data = rust::import("std::marker", "PhantomData"); + let _phantom_data = rust::import("std::marker", "PhantomData"); if let Some((fields, contains_lifetime)) = fields { Some(quote! { diff --git a/crates/dagger-sdk/src/gen.rs b/crates/dagger-sdk/src/gen.rs index 9028730..79f5a0a 100644 --- a/crates/dagger-sdk/src/gen.rs +++ b/crates/dagger-sdk/src/gen.rs @@ -33,7 +33,7 @@ pub struct CacheVolume { impl CacheVolume { pub fn id(&self) -> eyre::Result { - let mut query = self.selection.select("id"); + let query = self.selection.select("id"); query.execute(&graphql_client(&self.conn)) } @@ -158,7 +158,7 @@ impl Container { }; } pub fn default_args(&self) -> eyre::Result> { - let mut query = self.selection.select("defaultArgs"); + let query = self.selection.select("defaultArgs"); query.execute(&graphql_client(&self.conn)) } @@ -174,7 +174,7 @@ impl Container { }; } pub fn entrypoint(&self) -> eyre::Result> { - let mut query = self.selection.select("entrypoint"); + let query = self.selection.select("entrypoint"); query.execute(&graphql_client(&self.conn)) } @@ -186,7 +186,7 @@ impl Container { query.execute(&graphql_client(&self.conn)) } pub fn env_variables(&self) -> Vec { - let mut query = self.selection.select("envVariables"); + let query = self.selection.select("envVariables"); return vec![EnvVariable { proc: self.proc.clone(), @@ -195,7 +195,7 @@ impl Container { }]; } pub fn exec(&self) -> Container { - let mut query = self.selection.select("exec"); + let query = self.selection.select("exec"); return Container { proc: self.proc.clone(), @@ -233,7 +233,7 @@ impl Container { }; } pub fn exit_code(&self) -> eyre::Result { - let mut query = self.selection.select("exitCode"); + let query = self.selection.select("exitCode"); query.execute(&graphql_client(&self.conn)) } @@ -282,7 +282,7 @@ impl Container { }; } pub fn fs(&self) -> Directory { - let mut query = self.selection.select("fs"); + let query = self.selection.select("fs"); return Directory { proc: self.proc.clone(), @@ -291,7 +291,7 @@ impl Container { }; } pub fn id(&self) -> eyre::Result { - let mut query = self.selection.select("id"); + let query = self.selection.select("id"); query.execute(&graphql_client(&self.conn)) } @@ -303,7 +303,7 @@ impl Container { query.execute(&graphql_client(&self.conn)) } pub fn labels(&self) -> Vec