From e7bd24c13eb0c5c2b8ecf3f09f9e2de315bf8a41 Mon Sep 17 00:00:00 2001 From: memoryruins Date: Thu, 7 Nov 2019 01:03:29 -0500 Subject: use Color's `From` impl in more places --- wgpu/src/renderer.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'wgpu/src/renderer.rs') diff --git a/wgpu/src/renderer.rs b/wgpu/src/renderer.rs index c8e1e10d..799cb30c 100644 --- a/wgpu/src/renderer.rs +++ b/wgpu/src/renderer.rs @@ -444,12 +444,7 @@ fn explain_layout( // TODO: Draw borders instead primitives.push(Primitive::Quad { bounds: layout.bounds(), - background: Background::Color(Color { - r: 0.0, - g: 0.0, - b: 0.0, - a: 0.05, - }), + background: Background::Color([0.0, 0.0, 0.0, 0.05].into()), border_radius: 0, }); -- cgit