@@ -135,27 +135,27 @@ impl Ascii {
135
135
}
136
136
}
137
137
138
- impl fmt:: String for Ascii {
138
+ impl fmt:: Display for Ascii {
139
139
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)
141
141
}
142
142
}
143
143
144
- impl fmt:: String for Vec < Ascii > {
144
+ impl fmt:: Display for Vec < Ascii > {
145
145
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
146
- fmt:: String :: fmt ( & self [ ] , f)
146
+ fmt:: Display :: fmt ( & self [ ] , f)
147
147
}
148
148
}
149
149
150
- impl fmt:: String for [ Ascii ] {
150
+ impl fmt:: Display for [ Ascii ] {
151
151
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)
153
153
}
154
154
}
155
155
156
- impl fmt:: Show for Ascii {
156
+ impl fmt:: Debug for Ascii {
157
157
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)
159
159
}
160
160
}
161
161
0 commit comments