Loading system/gd/rust/linux/dbus_projection/src/lib.rs +3 −7 Original line number Diff line number Diff line Loading @@ -140,15 +140,11 @@ impl DisconnectWatcher { return false; } match self.callbacks.lock().unwrap().get(&address).and_then(|m| m.get(&target_id)) { let mut callbacks = self.callbacks.lock().unwrap(); match callbacks.get(&address).and_then(|m| m.get(&target_id)) { Some(cb) => { cb(target_id); let _ = self .callbacks .lock() .unwrap() .get_mut(&address) .and_then(|m| m.remove(&target_id)); let _ = callbacks.get_mut(&address).and_then(|m| m.remove(&target_id)); true } None => false, Loading system/gd/rust/linux/stack/src/bluetooth_gatt.rs +0 −1 Original line number Diff line number Diff line Loading @@ -717,7 +717,6 @@ impl BluetoothGatt { } pub fn init_profiles(&mut self, tx: Sender<Message>, adapter: Arc<Mutex<Box<Bluetooth>>>) { println!("woot woot"); self.gatt = Gatt::new(&self.intf.lock().unwrap()); self.adapter = Some(adapter); Loading Loading
system/gd/rust/linux/dbus_projection/src/lib.rs +3 −7 Original line number Diff line number Diff line Loading @@ -140,15 +140,11 @@ impl DisconnectWatcher { return false; } match self.callbacks.lock().unwrap().get(&address).and_then(|m| m.get(&target_id)) { let mut callbacks = self.callbacks.lock().unwrap(); match callbacks.get(&address).and_then(|m| m.get(&target_id)) { Some(cb) => { cb(target_id); let _ = self .callbacks .lock() .unwrap() .get_mut(&address) .and_then(|m| m.remove(&target_id)); let _ = callbacks.get_mut(&address).and_then(|m| m.remove(&target_id)); true } None => false, Loading
system/gd/rust/linux/stack/src/bluetooth_gatt.rs +0 −1 Original line number Diff line number Diff line Loading @@ -717,7 +717,6 @@ impl BluetoothGatt { } pub fn init_profiles(&mut self, tx: Sender<Message>, adapter: Arc<Mutex<Box<Bluetooth>>>) { println!("woot woot"); self.gatt = Gatt::new(&self.intf.lock().unwrap()); self.adapter = Some(adapter); Loading