Skip to content

Commit d6c6988

Browse files
committed
style: format encode_path_claude function
1 parent 56282fb commit d6c6988

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/utils/path.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,15 @@ pub fn encode_path_claude(path: &Path) -> String {
3737
let path_str = path.to_string_lossy();
3838
let normalized = path_str.replace('\\', "/");
3939

40-
normalized.chars()
41-
.map(|c| if c.is_ascii_alphanumeric() || c == '-' { c } else { '-' })
40+
normalized
41+
.chars()
42+
.map(|c| {
43+
if c.is_ascii_alphanumeric() || c == '-' {
44+
c
45+
} else {
46+
'-'
47+
}
48+
})
4249
.collect()
4350
}
4451

0 commit comments

Comments
 (0)