diff options
-rw-r--r-- | src/context.rs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/context.rs b/src/context.rs index 8eea770..67db982 100644 --- a/src/context.rs +++ b/src/context.rs @@ -90,15 +90,11 @@ impl<'ctx> Display for TaskRef<'ctx> { } write!(f, ":{}", self.id.task)?; - if host_arg.is_some() || target_arg.is_some() { - f.write_str("{")?; - if let Some(host) = host_arg { - write!(f, "{}", host.short)?; - } - if let Some(target) = target_arg { - write!(f, "->{}", target.short)?; - } - f.write_str("}")?; + if let Some(host) = host_arg { + write!(f, "@{}", host.short)?; + } + if let Some(target) = target_arg { + write!(f, "/{}", target.short)?; } Ok(()) } |