Skip to content

Commit

Permalink
fix: Use proper read and append all in structs
Browse files Browse the repository at this point in the history
  • Loading branch information
DashieTM committed Nov 10, 2023
1 parent bd3059c commit c737cf7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/signals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ impl arg::ReadAll for BluetoothDeviceAdded {
}
}

impl GetVal<BluetoothDevice> for BluetoothDeviceAdded {
fn get_value(&self) -> BluetoothDevice {
self.bluetooth_device.clone()
impl GetVal<(BluetoothDevice,)> for BluetoothDeviceAdded {
fn get_value(&self) -> (BluetoothDevice,) {
(self.bluetooth_device.clone(),)
}
}

Expand Down Expand Up @@ -60,9 +60,9 @@ impl dbus::message::SignalArgs for BluetoothDeviceRemoved {
const INTERFACE: &'static str = "org.xetibo.ReSet";
}

impl GetVal<Path<'static>> for BluetoothDeviceRemoved {
fn get_value(&self) -> Path<'static> {
self.bluetooth_device.clone()
impl GetVal<(Path<'static>,)> for BluetoothDeviceRemoved {
fn get_value(&self) -> (Path<'static>,) {
(self.bluetooth_device.clone(),)
}
}

Expand Down Expand Up @@ -90,9 +90,9 @@ impl dbus::message::SignalArgs for AccessPointAdded {
const INTERFACE: &'static str = "org.xetibo.ReSet";
}

impl GetVal<AccessPoint> for AccessPointAdded {
fn get_value(&self) -> AccessPoint {
self.access_point.clone()
impl GetVal<(AccessPoint,)> for AccessPointAdded {
fn get_value(&self) -> (AccessPoint,) {
(self.access_point.clone(),)
}
}

Expand Down Expand Up @@ -120,8 +120,8 @@ impl dbus::message::SignalArgs for AccessPointRemoved {
const INTERFACE: &'static str = "org.xetibo.ReSet";
}

impl GetVal<Path<'static>> for AccessPointRemoved {
fn get_value(&self) -> Path<'static> {
self.access_point.clone()
impl GetVal<(Path<'static>,)> for AccessPointRemoved {
fn get_value(&self) -> (Path<'static>,) {
(self.access_point.clone(),)
}
}

0 comments on commit c737cf7

Please sign in to comment.