Skip to content

Commit

Permalink
chore: add annotation to transmute
Browse files Browse the repository at this point in the history
  • Loading branch information
JPHutchins authored and nickbeth committed Nov 11, 2024
1 parent 72f2490 commit 3996590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/nwg_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl BitmapEx for nwg::Bitmap {
};

// Ugly hack to set the private `owned` field inside nwg::Bitmap to true
unsafe { std::mem::transmute(bitmap) }
unsafe { std::mem::transmute::<Bitmap, nwg::Bitmap>(bitmap) }
}
}
}
Expand Down

0 comments on commit 3996590

Please sign in to comment.