Skip to content

Commit 9ce4b37

Browse files
fix-msrv
1 parent 2be5341 commit 9ce4b37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ impl Pattern {
609609
if let (Some(first_char), second_char) = (chars.first(), chars.get(1)) {
610610
#[cfg(not(windows))]
611611
match (*first_char, second_char) {
612-
('~', None) | ('~', Some('/')) => {
612+
('~', None) | ('~', Some(&'/')) => {
613613
if let Ok(home_dir) = std::env::var("HOME") {
614614
for ch in home_dir.chars() {
615615
tokens.push(PatternToken::Char(ch));
@@ -619,9 +619,9 @@ impl Pattern {
619619
}
620620
_ => {}
621621
}
622-
#[cfg(windows)]
622+
//#[cfg(windows)]
623623
match (*first_char, second_char) {
624-
('~', None) | ('~', Some('/')) | ('~', Some('\\')) => {
624+
('~', None) | ('~', Some(&'/')) | ('~', Some(&'\\')) => {
625625
if let Ok(home_dir) = std::env::var("USERPROFILE") {
626626
for ch in home_dir.chars() {
627627
tokens.push(PatternToken::Char(ch));

0 commit comments

Comments
 (0)