Skip to content

Commit f01ff47

Browse files
committed
Use flat_map not flatten for windows
1 parent b2beb41 commit f01ff47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prost-build/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ impl Config {
986986
p.as_ref()
987987
.as_os_str()
988988
.encode_wide()
989-
.flatten(|c| [((c & 0xff00) >> 8) as u8, c & 0xff])
989+
.flat_map(|c| [((c & 0xff00) >> 8) as u8, c & 0xff])
990990
.collect::<Vec<_>>()
991991
.into()
992992
})

0 commit comments

Comments
 (0)