File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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) ) ;
You can’t perform that action at this time.
0 commit comments