mirror of
https://github.com/crossterm-rs/crossterm.git
synced 2025-05-05 15:32:57 +00:00
Fix clippy lint (operator precedence) (#976)
This commit is contained in:
parent
12f36ec316
commit
cb08b4db7f
@ -190,7 +190,9 @@ impl ScreenBufferCursor {
|
||||
fn save_position(&self) -> std::io::Result<()> {
|
||||
let position = self.position()?;
|
||||
|
||||
let bits = u64::from(u32::from(position.x as u16) << 16 | u32::from(position.y as u16));
|
||||
let upper = u32::from(position.x as u16) << 16;
|
||||
let lower = u32::from(position.y as u16);
|
||||
let bits = u64::from(upper | lower);
|
||||
SAVED_CURSOR_POS.store(bits, Ordering::Relaxed);
|
||||
|
||||
Ok(())
|
||||
|
Loading…
x
Reference in New Issue
Block a user