summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mullvad-types/src/relay_constraints.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/mullvad-types/src/relay_constraints.rs b/mullvad-types/src/relay_constraints.rs
index d1d3a87f71..09716c5fa3 100644
--- a/mullvad-types/src/relay_constraints.rs
+++ b/mullvad-types/src/relay_constraints.rs
@@ -566,8 +566,13 @@ pub struct BridgeConstraints {
impl fmt::Display for BridgeConstraints {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
match self.location {
- Constraint::Any => write!(f, "any location"),
- Constraint::Only(ref location_constraint) => location_constraint.fmt(f),
+ Constraint::Any => write!(f, "any location")?,
+ Constraint::Only(ref location_constraint) => location_constraint.fmt(f)?,
+ }
+ write!(f, " using ")?;
+ match self.providers {
+ Constraint::Any => write!(f, "any provider"),
+ Constraint::Only(ref constraint) => constraint.fmt(f),
}
}
}