diff options
| author | David Lönnhager <david.l@mullvad.net> | 2022-05-03 16:15:45 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2022-05-09 14:30:56 +0200 |
| commit | 243ca7ce48cd67834b6a7d49fb1ffad5a50d7aee (patch) | |
| tree | da2938eb7c4c63586d31cce8efe83d952b156312 /mullvad-daemon/src/device | |
| parent | dfeaebfd02ac6745657f0e14194d5ba4edc34e3a (diff) | |
| download | mullvadvpn-243ca7ce48cd67834b6a7d49fb1ffad5a50d7aee.tar.xz mullvadvpn-243ca7ce48cd67834b6a7d49fb1ffad5a50d7aee.zip | |
Decouple tunnel parameters generation from daemon message handler
Diffstat (limited to 'mullvad-daemon/src/device')
| -rw-r--r-- | mullvad-daemon/src/device/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mullvad-daemon/src/device/mod.rs b/mullvad-daemon/src/device/mod.rs index 753c963cca..dc43ce9ee1 100644 --- a/mullvad-daemon/src/device/mod.rs +++ b/mullvad-daemon/src/device/mod.rs @@ -170,7 +170,7 @@ impl From<PrivateDeviceEvent> for DeviceEvent { } impl PrivateDeviceEvent { - fn data(&self) -> Option<&PrivateAccountAndDevice> { + pub fn data(&self) -> Option<&PrivateAccountAndDevice> { match self { PrivateDeviceEvent::Login(config) => Some(config), PrivateDeviceEvent::Updated(config) => Some(config), |
