Skip to content

Commit 94d5d1a

Browse files
committed
attempt to fix platform-dependent type error with explicit cast
per @NoraCodes' suggestion; cf 27312b4
1 parent 5586f54 commit 94d5d1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iui/src/draw/path.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ pub enum FillMode {
2020

2121
impl FillMode {
2222
fn into_ui_fillmode(self) -> uiDrawFillMode {
23-
match self {
23+
return match self {
2424
FillMode::Winding => uiDrawFillModeWinding,
2525
FillMode::Alternate => uiDrawFillModeAlternate,
26-
}
26+
} as uiDrawFillMode;
2727
}
2828
}
2929

0 commit comments

Comments
 (0)