aboutsummaryrefslogtreecommitdiff
path: root/crates/tt
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tt')
-rw-r--r--crates/tt/src/buffer.rs2
-rw-r--r--crates/tt/src/lib.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/tt/src/buffer.rs b/crates/tt/src/buffer.rs
index e0021039a..dc577700f 100644
--- a/crates/tt/src/buffer.rs
+++ b/crates/tt/src/buffer.rs
@@ -133,7 +133,7 @@ impl<'a> TokenTreeRef<'a> {
133 } 133 }
134} 134}
135 135
136/// A safe version of `Cursor` from `syn` crate https://github.com/dtolnay/syn/blob/6533607f91686545cb034d2838beea338d9d0742/src/buffer.rs#L125 136/// A safe version of `Cursor` from `syn` crate <https://github.com/dtolnay/syn/blob/6533607f91686545cb034d2838beea338d9d0742/src/buffer.rs#L125>
137#[derive(Copy, Clone, Debug)] 137#[derive(Copy, Clone, Debug)]
138pub struct Cursor<'a> { 138pub struct Cursor<'a> {
139 buffer: &'a TokenBuffer<'a>, 139 buffer: &'a TokenBuffer<'a>,
diff --git a/crates/tt/src/lib.rs b/crates/tt/src/lib.rs
index bed44d600..b51ad5d0f 100644
--- a/crates/tt/src/lib.rs
+++ b/crates/tt/src/lib.rs
@@ -88,7 +88,7 @@ pub struct Ident {
88} 88}
89 89
90fn print_debug_subtree(f: &mut fmt::Formatter<'_>, subtree: &Subtree, level: usize) -> fmt::Result { 90fn print_debug_subtree(f: &mut fmt::Formatter<'_>, subtree: &Subtree, level: usize) -> fmt::Result {
91 let align = std::iter::repeat(" ").take(level).collect::<String>(); 91 let align = " ".repeat(level);
92 92
93 let aux = match subtree.delimiter.map(|it| (it.kind, it.id.0)) { 93 let aux = match subtree.delimiter.map(|it| (it.kind, it.id.0)) {
94 None => "$".to_string(), 94 None => "$".to_string(),
@@ -113,7 +113,7 @@ fn print_debug_subtree(f: &mut fmt::Formatter<'_>, subtree: &Subtree, level: usi
113} 113}
114 114
115fn print_debug_token(f: &mut fmt::Formatter<'_>, tkn: &TokenTree, level: usize) -> fmt::Result { 115fn print_debug_token(f: &mut fmt::Formatter<'_>, tkn: &TokenTree, level: usize) -> fmt::Result {
116 let align = std::iter::repeat(" ").take(level).collect::<String>(); 116 let align = " ".repeat(level);
117 117
118 match tkn { 118 match tkn {
119 TokenTree::Leaf(leaf) => match leaf { 119 TokenTree::Leaf(leaf) => match leaf {