Skip to content

Commit d0af472

Browse files
committed
Fix an instance of unused_must_use on Windows
1 parent d6cac97 commit d0af472

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,8 +1166,7 @@ mod test {
11661166
.ok()
11671167
.and_then(|p| match p.components().next().unwrap() {
11681168
Component::Prefix(prefix_component) => {
1169-
let path = Path::new(prefix_component.as_os_str());
1170-
path.join("*");
1169+
let path = Path::new(prefix_component.as_os_str()).join("*");
11711170
Some(path.to_path_buf())
11721171
}
11731172
_ => panic!("no prefix in this path"),

0 commit comments

Comments
 (0)