From db8df4f732a5f2ddd35c9ce89becb951dd5e4ecf Mon Sep 17 00:00:00 2001 From: Markus Pettersson Date: Mon, 12 Aug 2024 16:26:27 +0200 Subject: [PATCH] Convert catch-all arm to exhaustive check --- mullvad-daemon/src/tunnel.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mullvad-daemon/src/tunnel.rs b/mullvad-daemon/src/tunnel.rs index ecebc1c16176..839f07e29909 100644 --- a/mullvad-daemon/src/tunnel.rs +++ b/mullvad-daemon/src/tunnel.rs @@ -297,7 +297,9 @@ impl From for ParameterGenerationError { Error::ResolveCustomHostname => { ParameterGenerationError::CustomTunnelHostResultionError } - _error => ParameterGenerationError::NoMatchingRelay, + Error::NoAuthDetails | Error::SelectRelay(_) | Error::Device(_) => { + ParameterGenerationError::NoMatchingRelay + } } } }