We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee0e583 + 9d91c49 commit e338234Copy full SHA for e338234
src/lib.rs
@@ -1298,7 +1298,8 @@ pub mod token_stream {
1298
1299
impl Debug for IntoIter {
1300
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
1301
- Debug::fmt(&self.inner, f)
+ f.write_str("TokenStream ")?;
1302
+ f.debug_list().entries(self.clone()).finish()
1303
}
1304
1305
src/wrapper.rs
@@ -350,12 +350,6 @@ impl Iterator for TokenTreeIter {
350
351
352
353
-impl Debug for TokenTreeIter {
354
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
355
- f.debug_struct("TokenTreeIter").finish()
356
- }
357
-}
358
-
359
#[derive(Clone, PartialEq, Eq)]
360
#[cfg(super_unstable)]
361
pub(crate) enum SourceFile {
0 commit comments