Skip to content

Commit 3a37410

Browse files
Update rust/stackable-cockpit/src/platform/operator/mod.rs
Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
1 parent 1f2c919 commit 3a37410

File tree

1 file changed

+3
-3
lines changed
  • rust/stackable-cockpit/src/platform/operator

1 file changed

+3
-3
lines changed

rust/stackable-cockpit/src/platform/operator/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ impl Display for OperatorSpec {
6565
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
6666
write!(
6767
f,
68-
"{}{}",
69-
self.name,
70-
match &self.version {
68+
"{name}{version_selector}",
69+
name = self.name,
70+
version_selector = match &self.version {
7171
Some(v) => format!("={v}"),
7272
None => "".into(),
7373
}

0 commit comments

Comments
 (0)