diff options
Diffstat (limited to 'mullvad-api/src/device.rs')
| -rw-r--r-- | mullvad-api/src/device.rs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/mullvad-api/src/device.rs b/mullvad-api/src/device.rs index 036beb731f..062c06f28b 100644 --- a/mullvad-api/src/device.rs +++ b/mullvad-api/src/device.rs @@ -36,8 +36,9 @@ impl DevicesProxy { &self, account: AccountNumber, pubkey: wireguard::PublicKey, - ) -> impl Future<Output = Result<(Device, mullvad_types::wireguard::AssociatedAddresses), rest::Error>> - { + ) -> impl Future< + Output = Result<(Device, mullvad_types::wireguard::AssociatedAddresses), rest::Error>, + > + use<> { #[derive(serde::Serialize)] struct DeviceSubmission { pubkey: wireguard::PublicKey, @@ -89,7 +90,7 @@ impl DevicesProxy { &self, account: AccountNumber, id: DeviceId, - ) -> impl Future<Output = Result<Device, rest::Error>> { + ) -> impl Future<Output = Result<Device, rest::Error>> + use<> { let service = self.handle.service.clone(); let factory = self.handle.factory.clone(); async move { @@ -104,7 +105,7 @@ impl DevicesProxy { pub fn list( &self, account: AccountNumber, - ) -> impl Future<Output = Result<Vec<Device>, rest::Error>> { + ) -> impl Future<Output = Result<Vec<Device>, rest::Error>> + use<> { let service = self.handle.service.clone(); let factory = self.handle.factory.clone(); async move { @@ -120,7 +121,7 @@ impl DevicesProxy { &self, account: AccountNumber, id: DeviceId, - ) -> impl Future<Output = Result<(), rest::Error>> { + ) -> impl Future<Output = Result<(), rest::Error>> + use<> { let service = self.handle.service.clone(); let factory = self.handle.factory.clone(); async move { @@ -138,7 +139,7 @@ impl DevicesProxy { account: AccountNumber, id: DeviceId, pubkey: wireguard::PublicKey, - ) -> impl Future<Output = Result<mullvad_types::wireguard::AssociatedAddresses, rest::Error>> + ) -> impl Future<Output = Result<mullvad_types::wireguard::AssociatedAddresses, rest::Error>> + use<> { #[derive(serde::Serialize)] struct RotateDevicePubkey { |
