@@ -61,11 +61,11 @@ fn new_nsdata() -> Id<Object, Shared> {
6161 unsafe { Id :: new ( obj) . unwrap_unchecked ( ) }
6262}
6363
64- fn new_leaked_nsdata ( ) -> * mut Object {
64+ fn new_leaked_nsdata ( ) -> * const Object {
6565 Id :: as_ptr ( & * ManuallyDrop :: new ( new_nsdata ( ) ) )
6666}
6767
68- fn autoreleased_nsdata ( ) -> * mut Object {
68+ fn autoreleased_nsdata ( ) -> * const Object {
6969 // let bytes_ptr = BYTES.as_ptr() as *const c_void;
7070 // unsafe {
7171 // msg_send![
@@ -83,20 +83,20 @@ fn new_nsstring() -> Id<Object, Shared> {
8383 unsafe { Id :: new ( obj) . unwrap_unchecked ( ) }
8484}
8585
86- fn new_leaked_nsstring ( ) -> * mut Object {
86+ fn new_leaked_nsstring ( ) -> * const Object {
8787 Id :: as_ptr ( & * ManuallyDrop :: new ( new_nsstring ( ) ) )
8888}
8989
90- fn autoreleased_nsstring ( ) -> * mut Object {
90+ fn autoreleased_nsstring ( ) -> * const Object {
9191 // unsafe { msg_send![class!(NSString), string] }
9292 unsafe { msg_send ! [ new_leaked_nsstring( ) , autorelease] }
9393}
9494
95- fn retain_autoreleased ( obj : * mut Object ) -> Id < Object , Shared > {
96- unsafe { Id :: retain_autoreleased ( obj. cast ( ) ) . unwrap_unchecked ( ) }
95+ fn retain_autoreleased ( obj : * const Object ) -> Id < Object , Shared > {
96+ unsafe { Id :: retain_autoreleased ( ( obj as * mut Object ) . cast ( ) ) . unwrap_unchecked ( ) }
9797}
9898
99- fn autoreleased_nsdata_pool_cleanup ( ) -> * mut Object {
99+ fn autoreleased_nsdata_pool_cleanup ( ) -> * const Object {
100100 autoreleasepool ( |_| autoreleased_nsdata ( ) )
101101}
102102
@@ -108,7 +108,7 @@ fn autoreleased_nsdata_fast_caller_cleanup_pool_cleanup() -> Id<Object, Shared>
108108 autoreleasepool ( |_| retain_autoreleased ( autoreleased_nsdata ( ) ) )
109109}
110110
111- fn autoreleased_nsstring_pool_cleanup ( ) -> * mut Object {
111+ fn autoreleased_nsstring_pool_cleanup ( ) -> * const Object {
112112 autoreleasepool ( |_| autoreleased_nsstring ( ) )
113113}
114114
0 commit comments