diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-03-09 17:25:25 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-03-09 17:25:25 +0100 |
| commit | b2b8d37ce03de60582230e03c03efa356b6f31d3 (patch) | |
| tree | 19d24ae6e70f5bcae0e7461983a384634598da97 /src/layout/background.rs | |
| parent | a0de9aad07dda202097705d4e0f5220103686c0f (diff) | |
Rename run to line and add some explanatory comments ✏
The name run was a relict of the time where a line consisted of a set of runs with same alignment. While these runs still exist conceptually, they are all stored flatly together in what was now renamed from `run` to `line`.
Diffstat (limited to 'src/layout/background.rs')
| -rw-r--r-- | src/layout/background.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/background.rs b/src/layout/background.rs index 6b605d7f..b331ba3c 100644 --- a/src/layout/background.rs +++ b/src/layout/background.rs @@ -16,9 +16,9 @@ impl Layout for NodeBackground { for frame in layouted.frames_mut() { let element = Element::Geometry(Geometry { shape: Shape::Rect(frame.size), - fill: self.fill.clone(), + fill: self.fill, }); - frame.elements.insert(0, (Point::ZERO, element)) + frame.elements.insert(0, (Point::ZERO, element)); } layouted |
