Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit eeb6ead

Browse files
committed
Fix some unconstrained type parameters being inferred to !
Similar to rust-windowing/winit#428 CC servo/servo#20474 (comment)
1 parent 1069d67 commit eeb6ead

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

blurmac/src/framework.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ pub mod ns {
108108

109109
pub fn mutabledictionary_removeobjectforkey(nsmutdict: *mut Object, key: *mut Object) {
110110
unsafe {
111-
msg_send![nsmutdict, removeObjectForKey:key];
111+
let () = msg_send![nsmutdict, removeObjectForKey:key];
112112
}
113113
}
114114

115115
pub fn mutabledictionary_setobject_forkey(nsmutdict: *mut Object, object: *mut Object, key: *mut Object) {
116116
unsafe {
117-
msg_send![nsmutdict, setObject:object forKey:key];
117+
let () = msg_send![nsmutdict, setObject:object forKey:key];
118118
}
119119
}
120120

@@ -241,32 +241,32 @@ pub mod cb {
241241
pub fn centralmanager(delegate: *mut Object /*CBCentralManagerDelegate* */) -> *mut Object /*CBCentralManager* */ {
242242
unsafe {
243243
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];
245245
cbcentralmanager
246246
}
247247
}
248248

249249
pub fn centralmanager_scanforperipherals_options(cbcentralmanager: *mut Object, options: *mut Object /* NSDictionary<NSString*,id> */) {
250250
unsafe {
251-
msg_send![cbcentralmanager, scanForPeripheralsWithServices:nil options:options];
251+
let () = msg_send![cbcentralmanager, scanForPeripheralsWithServices:nil options:options];
252252
}
253253
}
254254

255255
pub fn centralmanager_stopscan(cbcentralmanager: *mut Object) {
256256
unsafe {
257-
msg_send![cbcentralmanager, stopScan];
257+
let () = msg_send![cbcentralmanager, stopScan];
258258
}
259259
}
260260

261261
pub fn centralmanager_connectperipheral(cbcentralmanager: *mut Object, peripheral: *mut Object /* CBPeripheral* */) {
262262
unsafe {
263-
msg_send![cbcentralmanager, connectPeripheral:peripheral options:nil];
263+
let () = msg_send![cbcentralmanager, connectPeripheral:peripheral options:nil];
264264
}
265265
}
266266

267267
pub fn centralmanager_cancelperipheralconnection(cbcentralmanager: *mut Object, peripheral: *mut Object /* CBPeripheral* */) {
268268
unsafe {
269-
msg_send![cbcentralmanager, cancelPeripheralConnection:peripheral];
269+
let () = msg_send![cbcentralmanager, cancelPeripheralConnection:peripheral];
270270
}
271271
}
272272

@@ -297,19 +297,19 @@ pub mod cb {
297297

298298
pub fn peripheral_setdelegate(cbperipheral: *mut Object, delegate: *mut Object /* CBPeripheralDelegate* */) {
299299
unsafe {
300-
msg_send![cbperipheral, setDelegate:delegate];
300+
let () = msg_send![cbperipheral, setDelegate:delegate];
301301
}
302302
}
303303

304304
pub fn peripheral_discoverservices(cbperipheral: *mut Object) {
305305
unsafe {
306-
msg_send![cbperipheral, discoverServices:nil];
306+
let () = msg_send![cbperipheral, discoverServices:nil];
307307
}
308308
}
309309

310310
pub fn peripheral_discoverincludedservicesforservice(cbperipheral: *mut Object, service: *mut Object /* CBService* */) {
311311
unsafe {
312-
msg_send![cbperipheral, discoverIncludedServices:nil forService:service];
312+
let () = msg_send![cbperipheral, discoverIncludedServices:nil forService:service];
313313
}
314314
}
315315

@@ -322,31 +322,31 @@ pub mod cb {
322322

323323
pub fn peripheral_discovercharacteristicsforservice(cbperipheral: *mut Object, service: *mut Object /* CBService* */) {
324324
unsafe {
325-
msg_send![cbperipheral, discoverCharacteristics:nil forService:service];
325+
let () = msg_send![cbperipheral, discoverCharacteristics:nil forService:service];
326326
}
327327
}
328328

329329
pub fn peripheral_readvalueforcharacteristic(cbperipheral: *mut Object, characteristic: *mut Object /* CBCharacteristic* */) {
330330
unsafe {
331-
msg_send![cbperipheral, readValueForCharacteristic:characteristic];
331+
let () = msg_send![cbperipheral, readValueForCharacteristic:characteristic];
332332
}
333333
}
334334

335335
pub fn peripheral_writevalue_forcharacteristic(cbperipheral: *mut Object, value: *mut Object /* NSData* */, characteristic: *mut Object /* CBCharacteristic* */) {
336336
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
338338
}
339339
}
340340

341341
pub fn peripheral_setnotifyvalue_forcharacteristic(cbperipheral: *mut Object, value: BOOL, characteristic: *mut Object /* CBCharacteristic* */) {
342342
unsafe {
343-
msg_send![cbperipheral, setNotifyValue:value forCharacteristic:characteristic];
343+
let () = msg_send![cbperipheral, setNotifyValue:value forCharacteristic:characteristic];
344344
}
345345
}
346346

347347
pub fn peripheral_discoverdescriptorsforcharacteristic(cbperipheral: *mut Object, characteristic: *mut Object /* CBCharacteristic* */) {
348348
unsafe {
349-
msg_send![cbperipheral, discoverDescriptorsForCharacteristic:characteristic];
349+
let () = msg_send![cbperipheral, discoverDescriptorsForCharacteristic:characteristic];
350350
}
351351
}
352352

0 commit comments

Comments
 (0)