Skip to content

Commit

Permalink
cleanup: avoid borrowing syntax from typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
NeroReflex committed Dec 31, 2024
1 parent add970e commit 70a6b27
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/input/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,11 +409,9 @@ impl Manager {
let tx_for_listen_on_dbus = self.tx.clone();
let dbus_for_listen_on_dbus = self.dbus.clone();

let this: &Self = self;

let cmd_tx_all_devices = this.tx.clone();
let cmd_tx_iio = this.tx.clone();
let cmd_tx_hidraw = this.tx.clone();
let cmd_tx_all_devices = self.tx.clone();
let cmd_tx_iio = self.tx.clone();
let cmd_tx_hidraw = self.tx.clone();

// Watch for hidraw/evdev inotify events.
// TODO: when we reload the udev device it triggers the udev watcher. We do this to break
Expand Down

0 comments on commit 70a6b27

Please sign in to comment.