diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-13 08:18:49 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-13 08:18:49 +0100 |
commit | adbee621a75f47e0da4f30d7205dfce009138865 (patch) | |
tree | ed8dcbba37de566f00d119817e141bb8293ce164 /crates/tt | |
parent | f107b0f1e223dba33cb9850ce44bcbb4345eef52 (diff) | |
parent | 5ac6804bb3a07b959e8c2c3534255a8d6bb4948c (diff) |
Merge #9242
9242: Clippy r=matklad a=Maan2003
Best viewed commit wise
Co-authored-by: Maan2003 <[email protected]>
Diffstat (limited to 'crates/tt')
-rw-r--r-- | crates/tt/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 | ||
90 | fn print_debug_subtree(f: &mut fmt::Formatter<'_>, subtree: &Subtree, level: usize) -> fmt::Result { | 90 | fn 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 | ||
115 | fn print_debug_token(f: &mut fmt::Formatter<'_>, tkn: &TokenTree, level: usize) -> fmt::Result { | 115 | fn 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 { |