mbe: handle multi-character separator

This commit is contained in:
Ryo Yoshida 2022-12-28 00:59:56 +09:00
parent 767351fb87
commit a7d411425c
No known key found for this signature in database
GPG key ID: E25698A930586171
3 changed files with 26 additions and 32 deletions

View file

@ -110,16 +110,6 @@ impl PartialEq for Separator {
}
}
impl Separator {
pub(crate) fn tt_count(&self) -> usize {
match self {
Separator::Literal(_) => 1,
Separator::Ident(_) => 1,
Separator::Puncts(it) => it.len(),
}
}
}
#[derive(Clone, Copy)]
enum Mode {
Pattern,