We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bffa59 commit 7f7cf34Copy full SHA for 7f7cf34
src/corebluetooth/internal.rs
@@ -236,10 +236,7 @@ impl CBPeripheral {
236
// Fulfill the disconnected future, if there is one.
237
// There might not be a future if the device disconnects unexpectedly.
238
if let Some(future) = self.disconnected_future_state.take() {
239
- future
240
- .lock()
241
- .unwrap()
242
- .set_reply(CoreBluetoothReply::Ok)
+ future.lock().unwrap().set_reply(CoreBluetoothReply::Ok)
243
}
244
245
0 commit comments