Skip to content

Commit 85feec2

Browse files
committed
Allow image element reuse buffer && fix clippy warnings
1 parent ad13289 commit 85feec2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/drawing/backend_impl/cairo.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl<'a> CairoBackend<'a> {
5656
f64::from(color.rgb().0) / 255.0,
5757
f64::from(color.rgb().1) / 255.0,
5858
f64::from(color.rgb().2) / 255.0,
59-
f64::from(color.alpha()),
59+
color.alpha(),
6060
)
6161
})
6262
}
@@ -133,7 +133,7 @@ impl<'a> DrawingBackend for CairoBackend<'a> {
133133
f64::from(color.rgb().0) / 255.0,
134134
f64::from(color.rgb().1) / 255.0,
135135
f64::from(color.rgb().2) / 255.0,
136-
f64::from(color.alpha()),
136+
color.alpha(),
137137
);
138138
c.fill();
139139
})

0 commit comments

Comments
 (0)