diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-05-17 15:00:29 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-05-17 15:00:29 +0200 |
| commit | 1003d320d40aa46a0a3fba49b09425ead1b4b584 (patch) | |
| tree | 388a529930e377c84dbd359faee79fc058aa7fe6 /src/layout/frame.rs | |
| parent | fbb823964f409c4c5d95f0a0a07e1eda70406c62 (diff) | |
Rename expand to fixed and switch to bools
Diffstat (limited to 'src/layout/frame.rs')
| -rw-r--r-- | src/layout/frame.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/layout/frame.rs b/src/layout/frame.rs index ea0f6aa8..0a07ca0c 100644 --- a/src/layout/frame.rs +++ b/src/layout/frame.rs @@ -18,6 +18,7 @@ pub struct Frame { impl Frame { /// Create a new, empty frame. pub fn new(size: Size, baseline: Length) -> Self { + assert!(size.is_finite()); Self { size, baseline, elements: vec![] } } |
