Skip to content

Commit 4ccb083

Browse files
Update src/flow_service/mod.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Raphael Götz <52959657+raphael-goetz@users.noreply.github.com>
1 parent 37893da commit 4ccb083

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

src/flow_service/mod.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,9 @@ impl FlowUpdateService {
155155
}
156156

157157
if let Some(source) = &self.definition_source {
158-
self.functions = self
159-
.functions
160-
.clone()
161-
.into_iter()
162-
.map(|mut x| {
163-
x.definition_source = source.to_string();
164-
x
165-
})
166-
.collect()
158+
for function in self.functions.iter_mut() {
159+
function.definition_source = source.to_string();
160+
}
167161
};
168162

169163
log::info!("Updating {} FunctionDefinitions.", self.functions.len());

0 commit comments

Comments
 (0)