From 1984406dbc0ae82f4b72b7d41de270c265bef421 Mon Sep 17 00:00:00 2001 From: ecpullen Date: Thu, 26 Oct 2023 21:42:11 +0000 Subject: [PATCH] cargo_make: Remove unused functions --- twoliter/src/cargo_make.rs | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/twoliter/src/cargo_make.rs b/twoliter/src/cargo_make.rs index eca02dfa0..9c6f88ba5 100644 --- a/twoliter/src/cargo_make.rs +++ b/twoliter/src/cargo_make.rs @@ -94,39 +94,6 @@ impl CargoMake { self } - /// Specify environment variables that should be applied for this comand - pub(crate) fn _envs(mut self, env_vars: V) -> Self - where - S1: Into, - S2: Into, - V: Into>, - { - for (key, value) in env_vars.into() { - self.args - .push(format!("-e={}={}", key.into(), value.into())); - } - self - } - - /// Specify `cargo make` arguments that should be applied for this comand - pub(crate) fn _arg(mut self, arg: S) -> Self - where - S: Into, - { - self.args.push(arg.into()); - self - } - - /// Specify `cargo make` arguments that should be applied for this comand - pub(crate) fn _args(mut self, args: V) -> Self - where - S: Into, - V: Into>, - { - self.args.extend(args.into().into_iter().map(Into::into)); - self - } - /// Execute the `cargo make` task pub(crate) async fn exec(&self, task: S) -> Result<()> where