about summary refs log tree commit diff
path: root/src/libstd/path/mod.rs
diff options
context:
space:
mode:
authornham <hamann.nick@gmail.com>2014-08-06 02:02:50 -0400
committernham <hamann.nick@gmail.com>2014-08-06 02:02:50 -0400
commit3fb78e29f4ae9b3e5bb19bf5a740375e90b01ceb (patch)
treeb4dcb4ce0e5f25a5f92c5a99f44d6ade5243144a /src/libstd/path/mod.rs
parentdfdea3f116ea028b347ca5b73dc462a6d48d9940 (diff)
downloadrust-3fb78e29f4ae9b3e5bb19bf5a740375e90b01ceb.tar.gz
rust-3fb78e29f4ae9b3e5bb19bf5a740375e90b01ceb.zip
Use byte literals in libstd
Diffstat (limited to 'src/libstd/path/mod.rs')
-rw-r--r--src/libstd/path/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/path/mod.rs b/src/libstd/path/mod.rs
index a22db7292fa..d290a5f8c63 100644
--- a/src/libstd/path/mod.rs
+++ b/src/libstd/path/mod.rs
@@ -351,7 +351,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
         match self.filename() {
             None => None,
             Some(name) => Some({
-                let dot = '.' as u8;
+                let dot = b'.';
                 match name.rposition_elem(&dot) {
                     None | Some(0) => name,
                     Some(1) if name == b".." => name,
@@ -398,7 +398,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
         match self.filename() {
             None => None,
             Some(name) => {
-                let dot = '.' as u8;
+                let dot = b'.';
                 match name.rposition_elem(&dot) {
                     None | Some(0) => None,
                     Some(1) if name == b".." => None,
@@ -474,7 +474,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
         assert!(!contains_nul(&extension));
 
         let val = self.filename().and_then(|name| {
-            let dot = '.' as u8;
+            let dot = b'.';
             let extlen = extension.container_as_bytes().len();
             match (name.rposition_elem(&dot), extlen) {
                 (None, 0) | (Some(0), 0) => None,