diff --git a/iced_layershell/src/conversion.rs b/iced_layershell/src/conversion.rs index e0e24d8..fd7b7ab 100644 --- a/iced_layershell/src/conversion.rs +++ b/iced_layershell/src/conversion.rs @@ -19,8 +19,8 @@ where >::Error: std::fmt::Debug, { let (mut x, mut y): (f64, f64) = (x.try_into().unwrap(), y.try_into().unwrap()); - x = x / scale_factor; - y = y / scale_factor; + x /= scale_factor; + y /= scale_factor; (x.try_into().unwrap(), y.try_into().unwrap()) }