Skip to content

Commit 3325ff6

Browse files
committed
comments from @lzutao
1 parent 624c5da commit 3325ff6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/liballoc/tests/str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ fn test_iterator_last() {
11091109
}
11101110

11111111
#[test]
1112-
fn test_chars_display() {
1112+
fn test_chars_debug() {
11131113
let s = "ศไทย中华Việt Nam";
11141114
let c = s.chars();
11151115
assert_eq!(

src/libcore/str/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ impl<'a> Iterator for Chars<'a> {
601601
}
602602

603603
#[stable(feature = "chars_debug_impl", since = "1.38.0")]
604-
impl<'a> fmt::Debug for Chars<'a> {
604+
impl fmt::Debug for Chars<'_> {
605605
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
606606
write!(f, "Chars(")?;
607607
f.debug_list().entries(self.clone()).finish()?;

0 commit comments

Comments
 (0)