Skip to content

Commit 92f48ec

Browse files
committed
fix: resolve CI lint errors (unused import, redundant closure, formatting)
1 parent 96dedee commit 92f48ec

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

crates/pet-fs/src/path.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33

44
use std::{
55
env,
6-
path::{Path, PathBuf, MAIN_SEPARATOR},
6+
path::{Path, PathBuf},
77
};
88

9+
#[cfg(unix)]
10+
use std::path::MAIN_SEPARATOR;
11+
912
/// Strips trailing path separators from a path, preserving root paths.
1013
///
1114
/// This function removes trailing `/` or `\` from paths while ensuring that root paths

crates/pet-windows-store/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl Locator for WindowsStore {
9898
if let Some(symlinks) = &found_env.symlinks {
9999
// Normalize symlinks for comparison
100100
let normalized_symlinks: Vec<PathBuf> =
101-
symlinks.iter().map(|p| normalize_for_comparison(p)).collect();
101+
symlinks.iter().map(normalize_for_comparison).collect();
102102
// Check if we have found this exe.
103103
if list_of_possible_exes
104104
.iter()

0 commit comments

Comments
 (0)