We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05660fa commit fc4197eCopy full SHA for fc4197e
1 file changed
crates/stackable-operator/src/v2/builder/pod/container.rs
@@ -190,7 +190,11 @@ impl<'a> From<&'a EnvVarSet> for Vec<&'a EnvVar> {
190
value.into_iter().collect()
191
}
192
193
-
+impl From<EnvVarSet> for Vec<EnvVar> {
194
+ fn from(value: EnvVarSet) -> Self {
195
+ value.into_iter().collect()
196
+ }
197
+}
198
impl<'a> IntoIterator for &'a EnvVarSet {
199
type IntoIter = vec::IntoIter<Self::Item>;
200
type Item = &'a EnvVar;
@@ -211,11 +215,7 @@ impl IntoIterator for EnvVarSet {
211
215
type Item = EnvVar;
212
216
213
217
fn into_iter(self) -> Self::IntoIter {
214
- Vec::from(&self)
- .into_iter()
- .cloned()
- .collect::<Vec<_>>()
218
+ Vec::from(self).into_iter()
219
220
221
0 commit comments