Fix Clippy lints in macOS backend
This commit is contained in:
parent
39e97ab2be
commit
8e3e078220
|
@ -234,7 +234,7 @@ extern "C" fn view_did_change_backing_properties(this: &Object, _: Sel, _: id) {
|
|||
let ns_window: *mut Object = msg_send![this, window];
|
||||
|
||||
let scale_factor: f64 =
|
||||
if ns_window.is_null() { 1.0 } else { NSWindow::backingScaleFactor(ns_window) as f64 };
|
||||
if ns_window.is_null() { 1.0 } else { NSWindow::backingScaleFactor(ns_window) };
|
||||
|
||||
let state: &mut WindowState = WindowState::from_field(this);
|
||||
|
||||
|
|
|
@ -229,10 +229,7 @@ impl Window {
|
|||
|
||||
let rect = NSRect::new(
|
||||
NSPoint::new(0.0, 0.0),
|
||||
NSSize::new(
|
||||
window_info.logical_size().width as f64,
|
||||
window_info.logical_size().height as f64,
|
||||
),
|
||||
NSSize::new(window_info.logical_size().width, window_info.logical_size().height),
|
||||
);
|
||||
|
||||
let ns_window = unsafe {
|
||||
|
|
Loading…
Reference in a new issue