move tt-iter into tt crate

This commit is contained in:
Lukas Wirth 2024-06-24 14:47:12 +02:00
parent db056b4a69
commit dc39e87b79
10 changed files with 336 additions and 323 deletions

View file

@ -4,6 +4,9 @@
#![warn(rust_2018_idioms, unused_lifetimes)]
pub mod buffer;
pub mod iter;
use std::fmt;
use stdx::impl_from;
@ -365,8 +368,6 @@ impl<S> Subtree<S> {
}
}
pub mod buffer;
pub fn pretty<S>(tkns: &[TokenTree<S>]) -> String {
fn tokentree_to_text<S>(tkn: &TokenTree<S>) -> String {
match tkn {