Skip to content

Commit

Permalink
Tweak BoxConstraints
Browse files Browse the repository at this point in the history
  • Loading branch information
PoignardAzur committed Dec 14, 2024
1 parent ab246cf commit 67a9586
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion masonry/src/box_constraints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ impl BoxConstraints {
///
/// ## Panics
///
/// Panics if `aspect_ratio` or `width` are not finite or are negative.
/// Panics if `aspect_ratio` or `width` are NaN, infinite or negative.
#[track_caller]
pub fn constrain_aspect_ratio(&self, aspect_ratio: f64, width: f64) -> Size {
assert!(aspect_ratio.is_finite());
assert!(width.is_finite());
Expand Down

0 comments on commit 67a9586

Please sign in to comment.