mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 14:03:35 +00:00
remove useless operations
This commit is contained in:
parent
0a0817905e
commit
aa90d02079
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ impl Output {
|
|||
}
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
|
@ -210,7 +210,7 @@ impl<'a> Writer<'a> {
|
|||
let idx_tag = match child {
|
||||
tt::TokenTree::Subtree(it) => {
|
||||
let idx = self.enqueue(it);
|
||||
idx << 2 | 0b00
|
||||
idx << 2
|
||||
}
|
||||
tt::TokenTree::Leaf(leaf) => match leaf {
|
||||
tt::Leaf::Literal(lit) => {
|
||||
|
|
Loading…
Reference in a new issue