diff --git a/crates/dagger-sdk/src/gen.rs b/crates/dagger-sdk/src/gen.rs index 97de4d6..a044a57 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 async fn id(&self) -> eyre::Result { - let mut query = self.selection.select("id"); + let query = self.selection.select("id"); query.execute(&graphql_client(&self.conn)).await } } @@ -181,7 +181,7 @@ impl Container { } /// Retrieves default arguments for future commands. pub async 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)).await } /// Retrieves a directory at the given path. Mounts are included. @@ -196,7 +196,7 @@ impl Container { } /// Retrieves entrypoint to be prepended to the arguments of all commands. pub async fn entrypoint(&self) -> eyre::Result> { - let mut query = self.selection.select("entrypoint"); + let query = self.selection.select("entrypoint"); query.execute(&graphql_client(&self.conn)).await } /// Retrieves the value of the specified environment variable. @@ -207,7 +207,7 @@ impl Container { } /// Retrieves the list of environment variables passed to commands. 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(), selection: query, @@ -217,7 +217,7 @@ impl Container { /// Retrieves this container after executing the specified command inside it. /// /// # Arguments /// /// * `opt` - optional argument, see inner type for documentation, use _opts to use pub fn exec(&self) -> Container { - let mut query = self.selection.select("exec"); + let query = self.selection.select("exec"); return Container { proc: self.proc.clone(), selection: query, @@ -255,7 +255,7 @@ impl Container { /// Exit code of the last executed command. Zero means success. /// Null if no command has been executed. pub async 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)).await } /// Writes the container as an OCI tarball to the destination file path on the host for the specified platformVariants. @@ -309,7 +309,7 @@ impl Container { } /// Retrieves this container's root filesystem. Mounts are not included. pub fn fs(&self) -> Directory { - let mut query = self.selection.select("fs"); + let query = self.selection.select("fs"); return Directory { proc: self.proc.clone(), selection: query, @@ -318,7 +318,7 @@ impl Container { } /// A unique identifier for this container. pub async fn id(&self) -> eyre::Result { - let mut query = self.selection.select("id"); + let query = self.selection.select("id"); query.execute(&graphql_client(&self.conn)).await } /// Retrieves the value of the specified label. @@ -329,7 +329,7 @@ impl Container { } /// Retrieves the list of labels passed to container. pub fn labels(&self) -> Vec