1
Fork 0

comments from @lzutao

This commit is contained in:
Maximilian Roos 2019-07-29 12:26:59 -04:00
parent 624c5da1aa
commit 3325ff6df4
No known key found for this signature in database
GPG key ID: 3232F28BEDA66FCD
2 changed files with 2 additions and 2 deletions

View file

@ -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!(

View file

@ -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()?;