From 5061c9fecb995bf1920bcb546cd522fe9a84dd3e Mon Sep 17 00:00:00 2001 From: Lukas Kalbertodt Date: Thu, 28 Sep 2017 16:41:21 +0200 Subject: Revert signature of eq_ignore_ascii_case() to original Since the methods on u8 directly will shadow the AsciiExt methods, we cannot change the signature without breaking everything. It would have been nice to take `u8` as argument instead of `&u8`, but we cannot break stuff! So this commit reverts it to the original `&u8` version. --- 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 8ddc75868ac..327deb9b419 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