Skip to content

Commit 9a3111d

Browse files
chore: Adapt wording
1 parent 631e9e0 commit 9a3111d

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ use crate::{
1717
};
1818

1919
/// Pattern for an escaped dollar sign (`$$`)
20-
static ESCAPED_DOLLAR_SIGN_PATTERN: LazyLock<Regex> =
21-
LazyLock::new(|| Regex::new(r"\$\$").expect("should be a valid regular expression"));
20+
static ESCAPED_DOLLAR_SIGN_PATTERN: LazyLock<Regex> = LazyLock::new(|| {
21+
Regex::new(r"\$\$").expect("static string must be a valid regular expression")
22+
});
2223

2324
/// Pattern for a referenced environment variable, e.g. `$(ENV_VAR)`
24-
static REFERENCED_ENV_VARS_PATTERN: LazyLock<Regex> =
25-
LazyLock::new(|| Regex::new(r"\$\(([^\)]+)\)").expect("should be a valid regular expression"));
25+
static REFERENCED_ENV_VARS_PATTERN: LazyLock<Regex> = LazyLock::new(|| {
26+
Regex::new(r"\$\(([^\)]+)\)").expect("static string must be a valid regular expression")
27+
});
2628

2729
/// Maximum depth to which references between environment variables are followed
2830
const ENV_VAR_DEPENDENCY_RESOLVER_MAX_RECURSION_DEPTH: usize = 10;

0 commit comments

Comments
 (0)