about summary refs log tree commit diff
path: root/src/libstd/str
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-08-06 23:03:31 -0700
committerCorey Richardson <corey@octayn.net>2013-08-07 22:41:12 -0400
commite99eff172a11816f335153147dd0800fc4877bee (patch)
tree5579273b59f513437a40cd0f47205b49df434559 /src/libstd/str
parent8964fcc5ac9cefcc55ea071142c3c81d623a52be (diff)
downloadrust-e99eff172a11816f335153147dd0800fc4877bee.tar.gz
rust-e99eff172a11816f335153147dd0800fc4877bee.zip
Forbid `priv` where it has no effect
This is everywhere except struct fields and enum variants.
Diffstat (limited to 'src/libstd/str')
-rw-r--r--src/libstd/str/ascii.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/str/ascii.rs b/src/libstd/str/ascii.rs
index 1be4d07dfa4..6ededb02107 100644
--- a/src/libstd/str/ascii.rs
+++ b/src/libstd/str/ascii.rs
@@ -274,7 +274,7 @@ pub fn to_ascii_lower(string: &str) -> ~str {
 }
 
 #[inline]
-priv fn map_bytes(string: &str, map: &'static [u8]) -> ~str {
+fn map_bytes(string: &str, map: &'static [u8]) -> ~str {
     let len = string.len();
     let mut result = str::with_capacity(len);
     unsafe {
@@ -298,7 +298,7 @@ pub fn eq_ignore_ascii_case(a: &str, b: &str) -> bool {
         |(byte_a, byte_b)| ASCII_LOWER_MAP[*byte_a] == ASCII_LOWER_MAP[*byte_b])
 }
 
-priv static ASCII_LOWER_MAP: &'static [u8] = &[
+static ASCII_LOWER_MAP: &'static [u8] = &[
     0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
     0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
     0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
@@ -333,7 +333,7 @@ priv static ASCII_LOWER_MAP: &'static [u8] = &[
     0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff,
 ];
 
-priv static ASCII_UPPER_MAP: &'static [u8] = &[
+static ASCII_UPPER_MAP: &'static [u8] = &[
     0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
     0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
     0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,