Skip to content

Commit af6f830

Browse files
committed
cargo fmt
1 parent 9ce0c8d commit af6f830

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

crates/stackable-operator/src/builder/pod/container.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -540,11 +540,12 @@ mod tests {
540540
assert_eq!(long_container_name.len(), 64); // 63 characters is the limit for container names
541541
let result = ContainerBuilder::new(long_container_name);
542542
if let Error::InvalidContainerName {
543-
container_name,
544-
source,
545-
} = result
543+
container_name,
544+
source,
545+
} = result
546546
.err()
547-
.expect("Container name exceeding 63 characters should cause an error") {
547+
.expect("Container name exceeding 63 characters should cause an error")
548+
{
548549
assert_eq!(container_name, long_container_name);
549550
assert_eq!(
550551
source.to_string(),
@@ -614,11 +615,12 @@ mod tests {
614615
expected_err_contains: &str,
615616
) {
616617
if let Error::InvalidContainerName {
617-
container_name: _,
618-
source,
619-
} = result
618+
container_name: _,
619+
source,
620+
} = result
620621
.err()
621-
.expect("Container name exceeding 63 characters should cause an error") {
622+
.expect("Container name exceeding 63 characters should cause an error")
623+
{
622624
assert!(dbg!(source.to_string()).contains(dbg!(expected_err_contains)));
623625
}
624626
}

0 commit comments

Comments
 (0)