Skip to content

Commit 97087a8

Browse files
committed
Show and String have become Debug and Display
1 parent 036c43c commit 97087a8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,27 +135,27 @@ impl Ascii {
135135
}
136136
}
137137

138-
impl fmt::String for Ascii {
138+
impl fmt::Display for Ascii {
139139
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
140-
fmt::String::fmt(&(self.chr as char), f)
140+
fmt::Display::fmt(&(self.chr as char), f)
141141
}
142142
}
143143

144-
impl fmt::String for Vec<Ascii> {
144+
impl fmt::Display for Vec<Ascii> {
145145
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
146-
fmt::String::fmt(&self[], f)
146+
fmt::Display::fmt(&self[], f)
147147
}
148148
}
149149

150-
impl fmt::String for [Ascii] {
150+
impl fmt::Display for [Ascii] {
151151
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
152-
fmt::String::fmt(self.as_str(), f)
152+
fmt::Display::fmt(self.as_str(), f)
153153
}
154154
}
155155

156-
impl fmt::Show for Ascii {
156+
impl fmt::Debug for Ascii {
157157
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
158-
fmt::Show::fmt(&(self.chr as char), f)
158+
fmt::Debug::fmt(&(self.chr as char), f)
159159
}
160160
}
161161

0 commit comments

Comments
 (0)