We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 624c5da commit 3325ff6Copy full SHA for 3325ff6
src/liballoc/tests/str.rs
@@ -1109,7 +1109,7 @@ fn test_iterator_last() {
1109
}
1110
1111
#[test]
1112
-fn test_chars_display() {
+fn test_chars_debug() {
1113
let s = "ศไทย中华Việt Nam";
1114
let c = s.chars();
1115
assert_eq!(
src/libcore/str/mod.rs
@@ -601,7 +601,7 @@ impl<'a> Iterator for Chars<'a> {
601
602
603
#[stable(feature = "chars_debug_impl", since = "1.38.0")]
604
-impl<'a> fmt::Debug for Chars<'a> {
+impl fmt::Debug for Chars<'_> {
605
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
606
write!(f, "Chars(")?;
607
f.debug_list().entries(self.clone()).finish()?;
0 commit comments