about summary refs log tree commit diff
path: root/src/libglob/lib.rs
diff options
context:
space:
mode:
authorAdolfo OchagavĂ­a <aochagavia92@gmail.com>2014-05-24 14:44:10 +0200
committerAdolfo OchagavĂ­a <aochagavia92@gmail.com>2014-05-24 22:00:18 +0200
commite9989586724472f32c6ae040da4c1a1f0867bef0 (patch)
tree337565fee003ae1bf8c889c68515ed419c9d3954 /src/libglob/lib.rs
parentf7ccae5f158cbbb7b910e59befb293e262d3dc1b (diff)
downloadrust-e9989586724472f32c6ae040da4c1a1f0867bef0.tar.gz
rust-e9989586724472f32c6ae040da4c1a1f0867bef0.zip
Update ascii functions used elsewhere
Diffstat (limited to 'src/libglob/lib.rs')
-rw-r--r--src/libglob/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libglob/lib.rs b/src/libglob/lib.rs
index 07b76afe2ad..5832fd9a400 100644
--- a/src/libglob/lib.rs
+++ b/src/libglob/lib.rs
@@ -553,18 +553,18 @@ fn in_char_specifiers(specifiers: &[CharSpecifier], c: char, options: MatchOptio
                 // FIXME: work with non-ascii chars properly (issue #1347)
                 if !options.case_sensitive && c.is_ascii() && start.is_ascii() && end.is_ascii() {
 
-                    let start = start.to_ascii().to_lower();
-                    let end = end.to_ascii().to_lower();
+                    let start = start.to_ascii().to_lowercase();
+                    let end = end.to_ascii().to_lowercase();
 
-                    let start_up = start.to_upper();
-                    let end_up = end.to_upper();
+                    let start_up = start.to_uppercase();
+                    let end_up = end.to_uppercase();
 
                     // only allow case insensitive matching when
                     // both start and end are within a-z or A-Z
                     if start != start_up && end != end_up {
                         let start = start.to_char();
                         let end = end.to_char();
-                        let c = c.to_ascii().to_lower().to_char();
+                        let c = c.to_ascii().to_lowercase().to_char();
                         if c >= start && c <= end {
                             return true;
                         }