Skip to content

Commit 90fc3ea

Browse files
committed
cargo fmt
1 parent aeee51e commit 90fc3ea

File tree

1 file changed

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

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ impl FromStr for OperatorSpec {
9696
ensure!(len <= 2, InvalidEqualSignCountSnafu);
9797

9898
// Check if the provided operator name is in the list of valid operators
99-
ensure!(VALID_OPERATORS.contains(&parts[0]), InvalidNameSnafu {
100-
name: parts[0]
101-
});
99+
ensure!(
100+
VALID_OPERATORS.contains(&parts[0]),
101+
InvalidNameSnafu { name: parts[0] }
102+
);
102103

103104
// If there is only one part, the input didn't include
104105
// the optional version identifier

0 commit comments

Comments
 (0)