@@ -108,13 +108,13 @@ pub mod ns {
108
108
109
109
pub fn mutabledictionary_removeobjectforkey ( nsmutdict : * mut Object , key : * mut Object ) {
110
110
unsafe {
111
- msg_send ! [ nsmutdict, removeObjectForKey: key] ;
111
+ let ( ) = msg_send ! [ nsmutdict, removeObjectForKey: key] ;
112
112
}
113
113
}
114
114
115
115
pub fn mutabledictionary_setobject_forkey ( nsmutdict : * mut Object , object : * mut Object , key : * mut Object ) {
116
116
unsafe {
117
- msg_send ! [ nsmutdict, setObject: object forKey: key] ;
117
+ let ( ) = msg_send ! [ nsmutdict, setObject: object forKey: key] ;
118
118
}
119
119
}
120
120
@@ -241,32 +241,32 @@ pub mod cb {
241
241
pub fn centralmanager ( delegate : * mut Object /*CBCentralManagerDelegate* */ ) -> * mut Object /*CBCentralManager* */ {
242
242
unsafe {
243
243
let cbcentralmanager: * mut Object = msg_send ! [ Class :: get( "CBCentralManager" ) . unwrap( ) , alloc] ;
244
- msg_send ! [ cbcentralmanager, initWithDelegate: delegate queue: nil] ;
244
+ let ( ) = msg_send ! [ cbcentralmanager, initWithDelegate: delegate queue: nil] ;
245
245
cbcentralmanager
246
246
}
247
247
}
248
248
249
249
pub fn centralmanager_scanforperipherals_options ( cbcentralmanager : * mut Object , options : * mut Object /* NSDictionary<NSString*,id> */ ) {
250
250
unsafe {
251
- msg_send ! [ cbcentralmanager, scanForPeripheralsWithServices: nil options: options] ;
251
+ let ( ) = msg_send ! [ cbcentralmanager, scanForPeripheralsWithServices: nil options: options] ;
252
252
}
253
253
}
254
254
255
255
pub fn centralmanager_stopscan ( cbcentralmanager : * mut Object ) {
256
256
unsafe {
257
- msg_send ! [ cbcentralmanager, stopScan] ;
257
+ let ( ) = msg_send ! [ cbcentralmanager, stopScan] ;
258
258
}
259
259
}
260
260
261
261
pub fn centralmanager_connectperipheral ( cbcentralmanager : * mut Object , peripheral : * mut Object /* CBPeripheral* */ ) {
262
262
unsafe {
263
- msg_send ! [ cbcentralmanager, connectPeripheral: peripheral options: nil] ;
263
+ let ( ) = msg_send ! [ cbcentralmanager, connectPeripheral: peripheral options: nil] ;
264
264
}
265
265
}
266
266
267
267
pub fn centralmanager_cancelperipheralconnection ( cbcentralmanager : * mut Object , peripheral : * mut Object /* CBPeripheral* */ ) {
268
268
unsafe {
269
- msg_send ! [ cbcentralmanager, cancelPeripheralConnection: peripheral] ;
269
+ let ( ) = msg_send ! [ cbcentralmanager, cancelPeripheralConnection: peripheral] ;
270
270
}
271
271
}
272
272
@@ -297,19 +297,19 @@ pub mod cb {
297
297
298
298
pub fn peripheral_setdelegate ( cbperipheral : * mut Object , delegate : * mut Object /* CBPeripheralDelegate* */ ) {
299
299
unsafe {
300
- msg_send ! [ cbperipheral, setDelegate: delegate] ;
300
+ let ( ) = msg_send ! [ cbperipheral, setDelegate: delegate] ;
301
301
}
302
302
}
303
303
304
304
pub fn peripheral_discoverservices ( cbperipheral : * mut Object ) {
305
305
unsafe {
306
- msg_send ! [ cbperipheral, discoverServices: nil] ;
306
+ let ( ) = msg_send ! [ cbperipheral, discoverServices: nil] ;
307
307
}
308
308
}
309
309
310
310
pub fn peripheral_discoverincludedservicesforservice ( cbperipheral : * mut Object , service : * mut Object /* CBService* */ ) {
311
311
unsafe {
312
- msg_send ! [ cbperipheral, discoverIncludedServices: nil forService: service] ;
312
+ let ( ) = msg_send ! [ cbperipheral, discoverIncludedServices: nil forService: service] ;
313
313
}
314
314
}
315
315
@@ -322,31 +322,31 @@ pub mod cb {
322
322
323
323
pub fn peripheral_discovercharacteristicsforservice ( cbperipheral : * mut Object , service : * mut Object /* CBService* */ ) {
324
324
unsafe {
325
- msg_send ! [ cbperipheral, discoverCharacteristics: nil forService: service] ;
325
+ let ( ) = msg_send ! [ cbperipheral, discoverCharacteristics: nil forService: service] ;
326
326
}
327
327
}
328
328
329
329
pub fn peripheral_readvalueforcharacteristic ( cbperipheral : * mut Object , characteristic : * mut Object /* CBCharacteristic* */ ) {
330
330
unsafe {
331
- msg_send ! [ cbperipheral, readValueForCharacteristic: characteristic] ;
331
+ let ( ) = msg_send ! [ cbperipheral, readValueForCharacteristic: characteristic] ;
332
332
}
333
333
}
334
334
335
335
pub fn peripheral_writevalue_forcharacteristic ( cbperipheral : * mut Object , value : * mut Object /* NSData* */ , characteristic : * mut Object /* CBCharacteristic* */ ) {
336
336
unsafe {
337
- msg_send ! [ cbperipheral, writeValue: value forCharacteristic: characteristic type : 0 ] ; // CBCharacteristicWriteWithResponse from CBPeripheral.h
337
+ let ( ) = msg_send ! [ cbperipheral, writeValue: value forCharacteristic: characteristic type : 0 ] ; // CBCharacteristicWriteWithResponse from CBPeripheral.h
338
338
}
339
339
}
340
340
341
341
pub fn peripheral_setnotifyvalue_forcharacteristic ( cbperipheral : * mut Object , value : BOOL , characteristic : * mut Object /* CBCharacteristic* */ ) {
342
342
unsafe {
343
- msg_send ! [ cbperipheral, setNotifyValue: value forCharacteristic: characteristic] ;
343
+ let ( ) = msg_send ! [ cbperipheral, setNotifyValue: value forCharacteristic: characteristic] ;
344
344
}
345
345
}
346
346
347
347
pub fn peripheral_discoverdescriptorsforcharacteristic ( cbperipheral : * mut Object , characteristic : * mut Object /* CBCharacteristic* */ ) {
348
348
unsafe {
349
- msg_send ! [ cbperipheral, discoverDescriptorsForCharacteristic: characteristic] ;
349
+ let ( ) = msg_send ! [ cbperipheral, discoverDescriptorsForCharacteristic: characteristic] ;
350
350
}
351
351
}
352
352
0 commit comments