Skip to content

Commit 771d129

Browse files
committed
fix: Clean up error message formatting in try_environment_from_venv_dir function
1 parent 013bcfa commit 771d129

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"git.branchProtectionPrompt": "alwaysCommitToNewBranch",
1212
"git.branchRandomName.enable": true,
1313
"chat.tools.terminal.autoApprove": {
14-
"cargo test": true
14+
"cargo test": true,
15+
"cargo fmt": true
1516
}
1617
}

crates/pet-venv/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ pub fn try_environment_from_venv_dir(path: &Path) -> Option<PythonEnvironment> {
5757
.executable(Some(executable))
5858
.version(version)
5959
.prefix(Some(prefix))
60-
.error(Some(
61-
"Python executable is a broken symlink".to_string(),
62-
))
60+
.error(Some("Python executable is a broken symlink".to_string()))
6361
.build(),
6462
),
6563
ExecutableResult::NotFound => {

0 commit comments

Comments
 (0)