Skip to content

Commit 478f7cd

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 4e6d8c4 commit 478f7cd

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
@@ -116,15 +116,9 @@ impl FlowUpdateService {
116116
}
117117

118118
if let Some(source) = &self.definition_source {
119-
self.data_types = self
120-
.data_types
121-
.clone()
122-
.into_iter()
123-
.map(|mut x| {
124-
x.definition_source = source.to_string();
125-
x
126-
})
127-
.collect()
119+
for data_type in self.data_types.iter_mut() {
120+
data_type.definition_source = source.to_string();
121+
}
128122
};
129123

130124
log::info!("Updating {} DataTypes.", self.data_types.len());

0 commit comments

Comments
 (0)