summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2022-05-11 13:42:21 +0200
committerDavid Lönnhager <david.l@mullvad.net>2022-05-12 15:02:31 +0200
commit27ee09b6f54076f8d0c25bb249609505bcebc0cc (patch)
tree48fa0bf45a2b22355a517c7db42fe6a5b16b8c91
parent34ff035d07a086d2bad26bfadfbda93b098806ff (diff)
downloadmullvadvpn-27ee09b6f54076f8d0c25bb249609505bcebc0cc.tar.xz
mullvadvpn-27ee09b6f54076f8d0c25bb249609505bcebc0cc.zip
Remove pointless async block
-rw-r--r--mullvad-daemon/src/device/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/mullvad-daemon/src/device/mod.rs b/mullvad-daemon/src/device/mod.rs
index cdee636638..7d2c0d07cc 100644
--- a/mullvad-daemon/src/device/mod.rs
+++ b/mullvad-daemon/src/device/mod.rs
@@ -806,8 +806,7 @@ impl AccountManager {
fn validation_call(&self) -> Result<impl Future<Output = Result<Device, Error>>, Error> {
let old_config = self.data.device().ok_or(Error::NoDevice)?;
- let device_request = self.fetch_device_config(old_config);
- Ok(async move { device_request.await })
+ Ok(self.fetch_device_config(old_config))
}
fn needs_validation(&mut self) -> bool {