Skip to content

Commit

Permalink
Use flat_map not flatten for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed May 5, 2022
1 parent b2beb41 commit f01ff47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prost-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ impl Config {
p.as_ref()
.as_os_str()
.encode_wide()
.flatten(|c| [((c & 0xff00) >> 8) as u8, c & 0xff])
.flat_map(|c| [((c & 0xff00) >> 8) as u8, c & 0xff])
.collect::<Vec<_>>()
.into()
})
Expand Down

0 comments on commit f01ff47

Please sign in to comment.