mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 02:29:44 +00:00
minor: New clippy lints
This commit is contained in:
parent
6725e046df
commit
4b6007115a
92 changed files with 180 additions and 201 deletions
|
|
@ -72,7 +72,7 @@ impl Input {
|
|||
}
|
||||
pub(crate) fn is_joint(&self, n: usize) -> bool {
|
||||
let (idx, b_idx) = self.bit_index(n);
|
||||
self.joint[idx] & 1 << b_idx != 0
|
||||
self.joint[idx] & (1 << b_idx) != 0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ impl Output {
|
|||
}
|
||||
|
||||
pub(crate) fn float_split_hack(&mut self, ends_in_dot: bool) {
|
||||
let e = (Self::SPLIT_EVENT as u32) << Self::TAG_SHIFT
|
||||
let e = ((Self::SPLIT_EVENT as u32) << Self::TAG_SHIFT)
|
||||
| ((ends_in_dot as u32) << Self::N_INPUT_TOKEN_SHIFT)
|
||||
| Self::EVENT_MASK;
|
||||
self.event.push(e);
|
||||
|
|
@ -99,7 +99,7 @@ impl Output {
|
|||
}
|
||||
|
||||
pub(crate) fn leave_node(&mut self) {
|
||||
let e = (Self::EXIT_EVENT as u32) << Self::TAG_SHIFT | Self::EVENT_MASK;
|
||||
let e = ((Self::EXIT_EVENT as u32) << Self::TAG_SHIFT) | Self::EVENT_MASK;
|
||||
self.event.push(e)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue