windows: Fix Clippy warnings (#9426)
Just handling clippy warnings Release Notes: - N/A
This commit is contained in:
parent
ee50d22add
commit
c2d5b33c20
1 changed files with 9 additions and 12 deletions
|
@ -898,7 +898,7 @@ impl WindowsWindowInner {
|
|||
let x = Pixels::from(cursor_point.x as f32);
|
||||
let y = Pixels::from(cursor_point.y as f32);
|
||||
let event = MouseDownEvent {
|
||||
button: button.clone(),
|
||||
button,
|
||||
position: Point { x, y },
|
||||
modifiers: self.current_modifiers(),
|
||||
click_count: 1,
|
||||
|
@ -978,19 +978,16 @@ impl WindowsWindowInner {
|
|||
.platform_inner
|
||||
.try_get_windows_inner_from_hwnd(lost_focus_hwnd)
|
||||
{
|
||||
lost_focus_window
|
||||
.callbacks
|
||||
.borrow_mut()
|
||||
.active_status_change
|
||||
.as_mut()
|
||||
.map(|mut cb| cb(false));
|
||||
let mut callbacks = lost_focus_window.callbacks.borrow_mut();
|
||||
if let Some(mut cb) = callbacks.active_status_change.as_mut() {
|
||||
cb(false);
|
||||
}
|
||||
}
|
||||
|
||||
self.callbacks
|
||||
.borrow_mut()
|
||||
.active_status_change
|
||||
.as_mut()
|
||||
.map(|mut cb| cb(true));
|
||||
let mut callbacks = self.callbacks.borrow_mut();
|
||||
if let Some(mut cb) = callbacks.active_status_change.as_mut() {
|
||||
cb(true);
|
||||
}
|
||||
|
||||
LRESULT(0)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue