about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorLukas Kalbertodt <lukas.kalbertodt@gmail.com>2017-08-22 19:45:36 +0200
committerLukas Kalbertodt <lukas.kalbertodt@gmail.com>2017-11-03 21:27:17 +0100
commitd3f2be4bd8790da2af8ed2b85dcea77d95a5da3e (patch)
tree712043d09f8604d9f044dcc6ef11c2f634460383 /src/libstd
parent525b81d570b15df2ed5896f0215baea5c64c650c (diff)
downloadrust-d3f2be4bd8790da2af8ed2b85dcea77d95a5da3e.tar.gz
rust-d3f2be4bd8790da2af8ed2b85dcea77d95a5da3e.zip
Add all methods of AsciiExt to u8 directly
This is the first step in order to deprecate AsciiExt. Since
this is a WIP commit, there is still some code duplication (notably
the static arrays) that will be removed later.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/ascii.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/ascii.rs b/src/libstd/ascii.rs
index 327deb9b419..8ddc75868ac 100644
--- a/src/libstd/ascii.rs
+++ b/src/libstd/ascii.rs
@@ -685,7 +685,7 @@ impl AsciiExt for [u8] {
     #[inline]
     fn eq_ignore_ascii_case(&self, other: &[u8]) -> bool {
         self.len() == other.len() &&
-        self.iter().zip(other).all(|(a, b)| {
+        self.iter().zip(other).all(|(a, &b)| {
             a.eq_ignore_ascii_case(b)
         })
     }