Skip to content

Commit 532979f

Browse files
Apply suggestions from code review
Co-authored-by: Techassi <[email protected]>
1 parent d90a8ad commit 532979f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust/stackable-cockpit/src/platform/demo/spec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl DemoSpec {
104104
// requested namespace
105105
if !self.supports_namespace(namespace) {
106106
return Err(Error::UnsupportedNamespace {
107-
requested: namespace.to_string(),
107+
requested: namespace.to_owned(),
108108
supported: self.supported_namespaces.clone(),
109109
});
110110
}

rust/stackable-cockpit/src/platform/stack/spec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl StackSpec {
121121
if !self.supports_namespace(namespace) {
122122
return Err(Error::UnsupportedNamespace {
123123
supported: self.supported_namespaces.clone(),
124-
requested: namespace.to_string(),
124+
requested: namespace.to_owned(),
125125
});
126126
}
127127

0 commit comments

Comments
 (0)