Skip to content

Commit d52fe39

Browse files
committed
Remove unnecessary unsafe on ptr()
1 parent aafd198 commit d52fe39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

iui/src/controls/create_macro.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ macro_rules! define_control {
6767
}
6868
}
6969

70+
/// Return the underlying pointer for this control.
7071
#[allow(non_snake_case)]
71-
pub unsafe fn ptr(&self) -> *mut $sys_type {
72+
pub fn ptr(&self) -> *mut $sys_type {
7273
self.$sys_type
7374
}
7475
}

0 commit comments

Comments
 (0)