Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit aa90d02

Browse files
committed
remove useless operations
1 parent 0a08179 commit aa90d02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/parser/src/output.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl Output {
5454
}
5555

5656
pub(crate) fn token(&mut self, kind: SyntaxKind, n_tokens: u8) {
57-
let e = ((kind as u16 as u32) << 16) | ((n_tokens as u32) << 8) | (0 << 4) | 1;
57+
let e = ((kind as u16 as u32) << 16) | ((n_tokens as u32) << 8) | 1;
5858
self.event.push(e)
5959
}
6060

crates/proc-macro-api/src/msg/flat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ impl<'a> Writer<'a> {
210210
let idx_tag = match child {
211211
tt::TokenTree::Subtree(it) => {
212212
let idx = self.enqueue(it);
213-
idx << 2 | 0b00
213+
idx << 2
214214
}
215215
tt::TokenTree::Leaf(leaf) => match leaf {
216216
tt::Leaf::Literal(lit) => {

0 commit comments

Comments
 (0)