remove useless operations

This commit is contained in:
Daniel Eades 2022-12-30 10:02:45 +00:00
parent 0a0817905e
commit aa90d02079
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ impl Output {
} }
pub(crate) fn token(&mut self, kind: SyntaxKind, n_tokens: u8) { pub(crate) fn token(&mut self, kind: SyntaxKind, n_tokens: u8) {
let e = ((kind as u16 as u32) << 16) | ((n_tokens as u32) << 8) | (0 << 4) | 1; let e = ((kind as u16 as u32) << 16) | ((n_tokens as u32) << 8) | 1;
self.event.push(e) self.event.push(e)
} }

View file

@ -210,7 +210,7 @@ impl<'a> Writer<'a> {
let idx_tag = match child { let idx_tag = match child {
tt::TokenTree::Subtree(it) => { tt::TokenTree::Subtree(it) => {
let idx = self.enqueue(it); let idx = self.enqueue(it);
idx << 2 | 0b00 idx << 2
} }
tt::TokenTree::Leaf(leaf) => match leaf { tt::TokenTree::Leaf(leaf) => match leaf {
tt::Leaf::Literal(lit) => { tt::Leaf::Literal(lit) => {