Skip to content

Commit d867d1b

Browse files
committed
Simplify variable declaration for non-UTF-8 filename test
1 parent 3de22e5 commit d867d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/non_utf8_filenames_unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ mod non_utf8 {
1313
let root = tmp.path();
1414

1515
// "fo\x80" (invalid UTF-8)
16-
let mut os = OsString::from_vec(vec![b'f', b'o', 0x80]);
16+
let os = OsString::from_vec(vec![b'f', b'o', 0x80]);
1717
let path = root.join(&os);
1818
fs::write(&path, "x").unwrap();
1919

0 commit comments

Comments
 (0)