diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-04 19:57:39 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-04 19:57:39 +0200 |
| commit | c1dd872b34507a9f45b39a8a6ac70606b642a19d (patch) | |
| tree | e3afa36228321f7b0680d8c989818f306b80d43e /src/layout/primitive.rs | |
| parent | 105f70867ddcb2c73860bf0c55f1380eda2437ca (diff) | |
Remove unncessary wrappers and typedefs 🛑
Diffstat (limited to 'src/layout/primitive.rs')
| -rw-r--r-- | src/layout/primitive.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/layout/primitive.rs b/src/layout/primitive.rs index cdbe63c2..d13110e3 100644 --- a/src/layout/primitive.rs +++ b/src/layout/primitive.rs @@ -17,12 +17,10 @@ impl Default for LayoutSystem { /// Specifies where to align a layout in a parent container. pub type LayoutAlign = Gen2<GenAlign>; -impl LayoutAlign { - /// The layout alignment that has both components set to `Start`. - pub const START: Self = Self { - primary: GenAlign::Start, - secondary: GenAlign::Start, - }; +impl Default for LayoutAlign { + fn default() -> Self { + Self::new(GenAlign::Start, GenAlign::Start) + } } /// Whether to expand a layout to an area's full size or shrink it to fit its content. |
