chore: address 1.79 clippy lints
This commit is contained in:
parent
3b4e064a07
commit
078b46720b
15 changed files with 30 additions and 30 deletions
|
|
@ -920,8 +920,8 @@ impl WindowDelegate {
|
|||
|
||||
pub fn set_max_inner_size(&self, dimensions: Option<Size>) {
|
||||
let dimensions = dimensions.unwrap_or(Size::Logical(LogicalSize {
|
||||
width: std::f32::MAX as f64,
|
||||
height: std::f32::MAX as f64,
|
||||
width: f32::MAX as f64,
|
||||
height: f32::MAX as f64,
|
||||
}));
|
||||
let scale_factor = self.scale_factor();
|
||||
let max_size = dimensions.to_logical::<CGFloat>(scale_factor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue