Skip to content

Commit 3aee169

Browse files
committed
Fix string type on Windows
1 parent 3bb9215 commit 3aee169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-path/src/relative_path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ mod tests {
187187
fn absolute_paths_return_err() {
188188
let path_str: &str = r"c:\refs\heads";
189189
let path_bstr: &BStr = path_str.into();
190-
let path_u8: &[u8; 11] = r"c:\refs\heads";
190+
let path_u8: &[u8; 13] = b"c:\\refs\\heads";
191191
let path_bstring: BString = r"c:\refs\heads".into();
192192

193193
assert!(matches!(

0 commit comments

Comments
 (0)