mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🔧 Fix rust linter errors
This commit is contained in:
@@ -87,8 +87,8 @@ fn get_text_stroke_paints(
|
||||
let shader = text_paint.shader();
|
||||
let mut is_opaque = true;
|
||||
|
||||
if shader.is_some() {
|
||||
is_opaque = shader.unwrap().is_opaque();
|
||||
if let Some(shader) = shader {
|
||||
is_opaque = shader.is_opaque();
|
||||
}
|
||||
|
||||
if is_opaque && count_inner_strokes == 1 {
|
||||
|
||||
Reference in New Issue
Block a user