diff options
| author | Martin Haug <mhaug@live.de> | 2021-02-06 12:54:44 +0100 |
|---|---|---|
| committer | Martin Haug <mhaug@live.de> | 2021-02-06 12:54:44 +0100 |
| commit | a6cae89b47246a235ed7b1093747c6f3bcb64da4 (patch) | |
| tree | 67c23ec9df3b9f535faf5fbd443e85d9a7813d37 /tests | |
| parent | 80e076814dde330fb2136172580f11e939bc6601 (diff) | |
Generalize child of NodeBackground 🍼
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typeset.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/typeset.rs b/tests/typeset.rs index b1f4ede2..d431abfe 100644 --- a/tests/typeset.rs +++ b/tests/typeset.rs @@ -464,10 +464,8 @@ fn draw_geometry(canvas: &mut Canvas, pos: Point, _: &Env, element: &Geometry) { Shape::Rect(s) => { let (w, h) = (s.width.to_pt() as f32, s.height.to_pt() as f32); canvas.fill_rect(Rect::from_xywh(x, y, w, h).unwrap(), &paint); - }, + } }; - - } fn draw_image(canvas: &mut Canvas, pos: Point, env: &Env, element: &Image) { |
