Skip to content

Commit e2d5a14

Browse files
authored
make ttf raw pub (#1458)
* make ttf raw pub * rm unsafe
1 parent 0e6fbe3 commit e2d5a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sdl2/ttf/font.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ impl<'ttf, 'r> Font<'ttf, 'r> {
308308
// this can prevent introducing UB until
309309
// https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
310310
#[allow(clippy::trivially_copy_pass_by_ref)]
311-
unsafe fn raw(&self) -> *mut ttf::TTF_Font {
311+
pub fn raw(&self) -> *mut ttf::TTF_Font {
312312
self.raw
313313
}
314314

0 commit comments

Comments
 (0)