diff options
| author | Lukas Kalbertodt <lukas.kalbertodt@gmail.com> | 2017-08-22 19:45:36 +0200 |
|---|---|---|
| committer | Lukas Kalbertodt <lukas.kalbertodt@gmail.com> | 2017-11-03 21:27:17 +0100 |
| commit | d3f2be4bd8790da2af8ed2b85dcea77d95a5da3e (patch) | |
| tree | 712043d09f8604d9f044dcc6ef11c2f634460383 /src/libstd | |
| parent | 525b81d570b15df2ed5896f0215baea5c64c650c (diff) | |
| download | rust-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.rs | 2 |
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) }) } |
