Skip to content

Commit

Permalink
maybe fix windows build, take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed May 13, 2024
1 parent 447532f commit fed4615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filenamegen/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ impl Node {
Node::LiteralComponents(p) => p.as_path() == s.to_path_lossy(),
#[cfg(windows)]
Node::LiteralComponents(p) => {
if let Some(p) = BStr::from_path(p.as_path()) {
normalize_and_lower_case(p) == normalize_and_lower_case(s)
if let Some(bytes) = <[u8]>::from_path(p.as_path()) {
normalize_and_lower_case(BStr::new(bytes)) == normalize_and_lower_case(s)
} else {
// If we couldn't convert ourselves to a bstr, then it
// cannot possibly be compared to a bstr
Expand Down

0 comments on commit fed4615

Please sign in to comment.