Browse Source

Tweak display implementation of DataflowId

tags/v0.1.0^2
Philipp Oppermann 3 years ago
parent
commit
92af6439c4
Failed to extract signature
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libraries/core/src/topics.rs

+ 2
- 2
libraries/core/src/topics.rs View File

@@ -54,9 +54,9 @@ pub struct DataflowId {
impl Display for DataflowId {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
if let Some(name) = &self.name {
write!(f, "{name} {}", self.uuid)
write!(f, "[{name}] {}", self.uuid)
} else {
write!(f, "<unnamed> {}", self.uuid)
write!(f, "[<unnamed>] {}", self.uuid)
}
}
}

Loading…
Cancel
Save