diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-10-31 15:52:16 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-10-31 15:52:35 +0100 |
| commit | 5b344b663a3d224134923eea0d67ebf44c069b07 (patch) | |
| tree | 34a5fb464a38b9d4cb11294379b3ddf351dfce21 /src/layout/incremental.rs | |
| parent | feff013abb17f31bc5305fe77fe67cf615c19ff2 (diff) | |
Reorganize modules
Instead of separating functionality into layout and library, everything lives in the library now. This way, related things live side by side and there are no duplicate file names in the two directories.
Diffstat (limited to 'src/layout/incremental.rs')
| -rw-r--r-- | src/layout/incremental.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/layout/incremental.rs b/src/layout/incremental.rs index 2f6dccd0..a90bac1d 100644 --- a/src/layout/incremental.rs +++ b/src/layout/incremental.rs @@ -1,10 +1,12 @@ use std::cmp::Reverse; use std::collections::HashMap; +use std::rc::Rc; use decorum::N32; use itertools::Itertools; -use super::*; +use super::{Constrained, Regions}; +use crate::frame::Frame; const TEMP_LEN: usize = 5; const TEMP_LAST: usize = TEMP_LEN - 1; @@ -396,6 +398,8 @@ impl PatternProperties { #[cfg(test)] mod tests { use super::*; + use crate::geom::{Size, Spec}; + use crate::layout::Constraints; fn empty_frames() -> Vec<Constrained<Rc<Frame>>> { vec