Skip to content

Commit

Permalink
Remove unnecessary assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sol-Ell committed Jun 2, 2024
1 parent 3817a92 commit 9ac7e3a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ impl WindowConfig {
///
/// Panics if either width or height of new size is zero.
pub fn size(mut self, size: impl Into<Size>) -> Self {
let new_size = size.into();
assert!(new_size.width != 0.0 && new_size.height != 0.0);
self.size = new_size;
self.size = size.into();
self
}

Expand Down

0 comments on commit 9ac7e3a

Please sign in to comment.