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 x = Pixels::from(cursor_point.x as f32);
|
||||||
let y = Pixels::from(cursor_point.y as f32);
|
let y = Pixels::from(cursor_point.y as f32);
|
||||||
let event = MouseDownEvent {
|
let event = MouseDownEvent {
|
||||||
button: button.clone(),
|
button,
|
||||||
position: Point { x, y },
|
position: Point { x, y },
|
||||||
modifiers: self.current_modifiers(),
|
modifiers: self.current_modifiers(),
|
||||||
click_count: 1,
|
click_count: 1,
|
||||||
|
@ -978,19 +978,16 @@ impl WindowsWindowInner {
|
||||||
.platform_inner
|
.platform_inner
|
||||||
.try_get_windows_inner_from_hwnd(lost_focus_hwnd)
|
.try_get_windows_inner_from_hwnd(lost_focus_hwnd)
|
||||||
{
|
{
|
||||||
lost_focus_window
|
let mut callbacks = lost_focus_window.callbacks.borrow_mut();
|
||||||
.callbacks
|
if let Some(mut cb) = callbacks.active_status_change.as_mut() {
|
||||||
.borrow_mut()
|
cb(false);
|
||||||
.active_status_change
|
}
|
||||||
.as_mut()
|
|
||||||
.map(|mut cb| cb(false));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self.callbacks
|
let mut callbacks = self.callbacks.borrow_mut();
|
||||||
.borrow_mut()
|
if let Some(mut cb) = callbacks.active_status_change.as_mut() {
|
||||||
.active_status_change
|
cb(true);
|
||||||
.as_mut()
|
}
|
||||||
.map(|mut cb| cb(true));
|
|
||||||
|
|
||||||
LRESULT(0)
|
LRESULT(0)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue