Skip to content

Commit 6c5f25a

Browse files
committed
fix linter
1 parent 7ca90bc commit 6c5f25a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/pet-conda/src/environments.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ fn get_conda_dir_from_cmd(cmd_line: String) -> Option<PathBuf> {
186186
let conda_exe = resolve_symlink(&conda_exe).unwrap_or(conda_exe);
187187
if let Some(cmd_line) = conda_exe.parent() {
188188
if let Some(conda_dir) = cmd_line.file_name() {
189-
if conda_dir.to_ascii_lowercase() == "bin"
190-
|| conda_dir.to_ascii_lowercase() == "scripts"
189+
if conda_dir.to_string_lossy().to_lowercase() == "bin"
190+
|| conda_dir.to_string_lossy().to_lowercase() == "scripts"
191191
{
192192
if let Some(conda_dir) = cmd_line.parent() {
193193
// Ensure the casing of the paths are correct.

0 commit comments

Comments
 (0)