File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -203,13 +203,13 @@ pub type NSSharedArray<T> = NSArray<T, Shared>;
203
203
pub trait INSMutableArray : INSArray {
204
204
fn add_object ( & mut self , obj : Id < Self :: Item , Self :: Own > ) {
205
205
unsafe {
206
- let _: ( ) = msg_send ! [ self , addObject: obj] ;
206
+ let _: ( ) = msg_send ! [ self , addObject: & * obj] ;
207
207
}
208
208
}
209
209
210
210
fn insert_object_at ( & mut self , index : usize , obj : Id < Self :: Item , Self :: Own > ) {
211
211
unsafe {
212
- let _: ( ) = msg_send ! [ self , insertObject: obj atIndex: index] ;
212
+ let _: ( ) = msg_send ! [ self , insertObject: & * obj atIndex: index] ;
213
213
}
214
214
}
215
215
@@ -221,7 +221,7 @@ pub trait INSMutableArray : INSArray {
221
221
} ;
222
222
unsafe {
223
223
let _: ( ) = msg_send ! [ self , replaceObjectAtIndex: index
224
- withObject: obj] ;
224
+ withObject: & * obj] ;
225
225
}
226
226
old_obj
227
227
}
You can’t perform that action at this time.
0 commit comments