Skip to content

Commit

Permalink
fix build on windows?
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed May 13, 2024
1 parent 87e88bd commit 79bdd2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions filenamegen/src/node.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::token::Token;
use bstr::BStr;
#[cfg(windows)]
use bstr::BString;
use bstr::ByteSlice;
use bstr::ByteVec;
use regex::bytes::Regex;
use std::path::PathBuf;

Expand All @@ -25,9 +25,9 @@ impl RegexAndTokens {
}
}

#[cfg(windows)]
#[allow(unused)]
fn normalize_and_lower_case(s: &BStr) -> BString {
let mut norm = BString::new();
let mut norm = BString::new(vec![]);
for c in s.chars() {
if c == '/' {
norm.push_char('\\');
Expand Down

0 comments on commit 79bdd2a

Please sign in to comment.