Skip to content

Commit 2e5384d

Browse files
committed
fix(stackable-operator): Improve AwsRegion::name() ergonomics with &self parameter and return Option<&str>
1 parent 93004e1 commit 2e5384d

File tree

1 file changed

+1
-1
lines changed
  • crates/stackable-operator/src/commons/s3

1 file changed

+1
-1
lines changed

crates/stackable-operator/src/commons/s3/crd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl AwsRegion {
132132
/// };
133133
/// # }
134134
/// ```
135-
pub fn name(self) -> Option<String> {
135+
pub fn name(&self) -> Option<&str> {
136136
match self {
137137
AwsRegion::Name(name) => Some(name),
138138
AwsRegion::Source(_) => None,

0 commit comments

Comments
 (0)