From 3325ff6df47f75cdf4891b35dcaf565f7ffb22cf Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Mon, 29 Jul 2019 12:26:59 -0400 Subject: [PATCH] comments from @lzutao --- src/liballoc/tests/str.rs | 2 +- src/libcore/str/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/liballoc/tests/str.rs b/src/liballoc/tests/str.rs index 20132fea65118..c5198ca39fedf 100644 --- a/src/liballoc/tests/str.rs +++ b/src/liballoc/tests/str.rs @@ -1109,7 +1109,7 @@ fn test_iterator_last() { } #[test] -fn test_chars_display() { +fn test_chars_debug() { let s = "ศไทย中华Việt Nam"; let c = s.chars(); assert_eq!( diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index ee791748c1ddf..4faf9ff4d2ee2 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -601,7 +601,7 @@ impl<'a> Iterator for Chars<'a> { } #[stable(feature = "chars_debug_impl", since = "1.38.0")] -impl<'a> fmt::Debug for Chars<'a> { +impl fmt::Debug for Chars<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "Chars(")?; f.debug_list().entries(self.clone()).finish()?;