Skip to content

Commit 3996590

Browse files
JPHutchinsnickbeth
authored andcommitted
chore: add annotation to transmute
1 parent 72f2490 commit 3996590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/nwg_ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl BitmapEx for nwg::Bitmap {
8383
};
8484

8585
// Ugly hack to set the private `owned` field inside nwg::Bitmap to true
86-
unsafe { std::mem::transmute(bitmap) }
86+
unsafe { std::mem::transmute::<Bitmap, nwg::Bitmap>(bitmap) }
8787
}
8888
}
8989
}

0 commit comments

Comments
 (0)