Skip to content

Commit

Permalink
Convert catch-all arm to exhaustive check
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Aug 12, 2024
1 parent 38a03d5 commit db8df4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mullvad-daemon/src/tunnel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ impl From<Error> for ParameterGenerationError {
Error::ResolveCustomHostname => {
ParameterGenerationError::CustomTunnelHostResultionError
}
_error => ParameterGenerationError::NoMatchingRelay,
Error::NoAuthDetails | Error::SelectRelay(_) | Error::Device(_) => {
ParameterGenerationError::NoMatchingRelay
}
}
}
}
Expand Down

0 comments on commit db8df4f

Please sign in to comment.