File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -315,19 +315,25 @@ impl Command {
315315 ///
316316 /// cargo()
317317 /// .unwrap()
318- /// .env_clear_cargo_vars ()
318+ /// .env_clear_cargo ()
319319 /// .env("CARGO_TARGET_DIR", "/path/to/target")
320320 /// .arg("build")
321321 /// .exec();
322322 /// ```
323323 ///
324324 /// [`env`]: Command::env
325- pub fn env_clear_cargo_vars ( & mut self ) -> & mut Self {
325+ pub fn env_clear_cargo ( & mut self ) -> & mut Self {
326326 self . inherit_cargo_envs = false ;
327327 self . envs . retain ( |k, _| !is_cargo_env ( k) ) ;
328328 self
329329 }
330330
331+ #[ doc( hidden) ]
332+ #[ deprecated( note = "use `env_clear_cargo` instead" ) ]
333+ pub fn env_clear_cargo_vars ( & mut self ) -> & mut Self {
334+ self . env_clear_cargo ( )
335+ }
336+
331337 /// Removes an explicitly set environment variable and prevents inheriting
332338 /// it from a parent process.
333339 ///
You can’t perform that action at this time.
0 commit comments