summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon/src/device
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2022-05-03 16:15:45 +0200
committerDavid Lönnhager <david.l@mullvad.net>2022-05-09 14:30:56 +0200
commit243ca7ce48cd67834b6a7d49fb1ffad5a50d7aee (patch)
treeda2938eb7c4c63586d31cce8efe83d952b156312 /mullvad-daemon/src/device
parentdfeaebfd02ac6745657f0e14194d5ba4edc34e3a (diff)
downloadmullvadvpn-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.rs2
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),