Skip to content

Commit e2d0625

Browse files
committed
raw string format
1 parent 559bb18 commit e2d0625

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -604,11 +604,11 @@ mod tests {
604604
assert!(ContainerBuilder::new("name-with-hyphen").is_ok());
605605
assert_container_builder_err(
606606
ContainerBuilder::new("ends-with-hyphen-"),
607-
&format!("regex used for validation is \"{RFC_1123_LABEL_FMT}\""),
607+
&format!(r#"regex used for validation is "{RFC_1123_LABEL_FMT}""#),
608608
);
609609
assert_container_builder_err(
610610
ContainerBuilder::new("-starts-with-hyphen"),
611-
&format!("regex used for validation is \"{RFC_1123_LABEL_FMT}\""),
611+
&format!(r#"regex used for validation is "{RFC_1123_LABEL_FMT}""#),
612612
);
613613
}
614614

@@ -623,7 +623,7 @@ mod tests {
623623
assert_container_builder_err(
624624
ContainerBuilder::new("name_name"),
625625
&format!(
626-
"(e.g. \"example-label\", or \"1-label-1\", regex used for validation is \"{RFC_1123_LABEL_FMT}\""
626+
r#"(e.g. "example-label", or "1-label-1", regex used for validation is "{RFC_1123_LABEL_FMT}""#
627627
),
628628
);
629629
}

0 commit comments

Comments
 (0)