From 268e351ddeccd116aca0e5e04aa45b9c4c721787 Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Tue, 17 May 2022 02:10:30 +0200 Subject: [PATCH] examples: fix clippy errors --- examples/src/bin/cairo_compositor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/src/bin/cairo_compositor.rs b/examples/src/bin/cairo_compositor.rs index 607ab2dab..720b3718a 100644 --- a/examples/src/bin/cairo_compositor.rs +++ b/examples/src/bin/cairo_compositor.rs @@ -280,7 +280,7 @@ mod cairo_compositor { let bg = ( ((settings.background_color >> 16) & 0xff) as f64 / 255.0, ((settings.background_color >> 8) & 0xff) as f64 / 255.0, - ((settings.background_color >> 0) & 0xff) as f64 / 255.0, + (settings.background_color & 0xff) as f64 / 255.0, ); ctx.set_operator(cairo::Operator::Source); ctx.set_source_rgb(bg.0, bg.1, bg.2); @@ -316,7 +316,7 @@ mod cairo_compositor { -(frame.height() as f64 / 2.0), ); - paint_frame(&ctx, &frame, settings.alpha); + paint_frame(ctx, &frame, settings.alpha); ctx.restore().unwrap(); }