Skip to content

Commit c2835a4

Browse files
committed
fix: Resolve Windows compilation error in binary_search type coercion
1 parent b00eec5 commit c2835a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/turborepo-scm/src/repo_index.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,8 @@ fn find_untracked_files(
352352
let in_ls_tree = ls_tree_hashes
353353
.binary_search_by(|(p, _)| p.as_str().cmp(unix_str))
354354
.is_ok();
355-
let in_status = sorted_status.binary_search(&unix_str).is_ok();
355+
let unix_ref: &str = unix_str.as_ref();
356+
let in_status = sorted_status.binary_search(&unix_ref).is_ok();
356357

357358
if !in_ls_tree
358359
&& !in_status

0 commit comments

Comments
 (0)