Skip to content

Commit da40a79

Browse files
committed
Apply cargo fmt formatting
1 parent 551bc41 commit da40a79

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

crates/pet-pipenv/src/env_variables.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ impl EnvVariables {
3030
.get_env_var("PIPENV_PIPFILE".to_string())
3131
.unwrap_or("Pipfile".to_string()),
3232
home: env.get_user_home(),
33-
workon_home: env.get_env_var("WORKON_HOME".to_string()).map(PathBuf::from),
33+
workon_home: env
34+
.get_env_var("WORKON_HOME".to_string())
35+
.map(PathBuf::from),
3436
path: env.get_env_var("PATH".to_string()),
3537
}
3638
}

crates/pet-pipenv/src/lib.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,14 @@ fn list_environments(env_vars: &EnvVariables) -> Vec<PythonEnvironment> {
209209
let symlinks = find_executables(&bin_dir);
210210
let version = version::from_creator_for_virtual_env(&path);
211211

212-
let env = PythonEnvironmentBuilder::new(Some(
213-
PythonEnvironmentKind::Pipenv,
214-
))
215-
.executable(Some(norm_case(python_exe)))
216-
.version(version)
217-
.prefix(Some(norm_case(path.clone())))
218-
.project(Some(project_path))
219-
.symlinks(Some(symlinks))
220-
.build();
212+
let env =
213+
PythonEnvironmentBuilder::new(Some(PythonEnvironmentKind::Pipenv))
214+
.executable(Some(norm_case(python_exe)))
215+
.version(version)
216+
.prefix(Some(norm_case(path.clone())))
217+
.project(Some(project_path))
218+
.symlinks(Some(symlinks))
219+
.build();
221220

222221
trace!("Found pipenv environment: {:?}", env);
223222
environments.push(env);

0 commit comments

Comments
 (0)