From d3f2be4bd8790da2af8ed2b85dcea77d95a5da3e Mon Sep 17 00:00:00 2001 From: Lukas Kalbertodt Date: Tue, 22 Aug 2017 19:45:36 +0200 Subject: 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. --- src/libstd/ascii.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd') 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) }) } -- cgit 1.4.1-3-g733a5