Skip to content

Commit 9bc6704

Browse files
committed
Format code the way it has always been
1 parent e596c0c commit 9bc6704

File tree

1 file changed

+9
-10
lines changed
  • mullvad-relay-selector/src/relay_selector

1 file changed

+9
-10
lines changed

mullvad-relay-selector/src/relay_selector/mod.rs

+9-10
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,9 @@ use talpid_types::{
5353
ErrorExt,
5454
};
5555

56-
/// [`WIREGUARD_RETRY_ORDER`] defines an ordered set of relay parameters which the relay selector
57-
/// should should prioritize on successive connection attempts. Note that these will *never*
58-
/// override user preferences. See [the documentation on `RelayQuery`][RelayQuery] for further
59-
/// details.
56+
/// [`WIREGUARD_RETRY_ORDER`] defines an ordered set of relay parameters which the relay selector should
57+
/// prioritize on successive connection attempts. Note that these will *never* override user
58+
/// preferences. See [the documentation on `RelayQuery`][RelayQuery] for further details.
6059
///
6160
/// This list should be kept in sync with the expected behavior defined in `docs/relay-selector.md`
6261
pub static WIREGUARD_RETRY_ORDER: LazyLock<Vec<RelayQuery>> = LazyLock::new(|| {
@@ -82,8 +81,8 @@ pub static WIREGUARD_RETRY_ORDER: LazyLock<Vec<RelayQuery>> = LazyLock::new(|| {
8281
]
8382
});
8483

85-
/// [`OPENVPN_RETRY_ORDER`] defines an ordered set of relay parameters which the relay selector
86-
/// should prioritize on successive connection attempts. Note that these will *never* override user
84+
/// [`OPENVPN_RETRY_ORDER`] defines an ordered set of relay parameters which the relay selector should
85+
/// prioritize on successive connection attempts. Note that these will *never* override user
8786
/// preferences. See [the documentation on `RelayQuery`][RelayQuery] for further details.
8887
///
8988
/// This list should be kept in sync with the expected behavior defined in `docs/relay-selector.md`
@@ -694,10 +693,10 @@ impl RelaySelector {
694693
parsed_relays: &RelayList,
695694
custom_lists: &CustomListsSettings,
696695
) -> Result<GetRelay, Error> {
697-
// FIXME: A bit of defensive programming - calling `get_wireguard_relay_inner` with a query
698-
// that doesn't specify Wireguard as the desired tunnel type is not valid and will
699-
// lead to unwanted behavior. This should be seen as a workaround, and it would be
700-
// nicer to lift this invariant to be checked by the type system instead.
696+
// FIXME: A bit of defensive programming - calling `get_wireguard_relay_inner` with a query that
697+
// doesn't specify Wireguard as the desired tunnel type is not valid and will lead
698+
// to unwanted behavior. This should be seen as a workaround, and it would be nicer
699+
// to lift this invariant to be checked by the type system instead.
701700
let mut query = query.clone();
702701
query.set_tunnel_protocol(TunnelType::Wireguard)?;
703702
Self::get_wireguard_relay_inner(&query, custom_lists, parsed_relays)

0 commit comments

Comments
 (0)