Commit 9908e1b2 authored by Éloïs's avatar Éloïs
Browse files

style(xtask): fix clippy warning

parent d7f48f59
......@@ -44,14 +44,12 @@ pub(super) async fn get_changes(spec_version: u32) -> Result<String> {
if let Some(merge_requests) = project.merge_requests {
if let Some(nodes) = merge_requests.nodes {
let mut changes = String::new();
for merge_request in nodes {
if let Some(merge_request) = merge_request {
changes.push_str(&format!(
"* {mr_title} (!{mr_number})\n",
mr_title = merge_request.title,
mr_number = merge_request.iid
));
}
for merge_request in nodes.into_iter().flatten() {
changes.push_str(&format!(
"* {mr_title} (!{mr_number})\n",
mr_title = merge_request.title,
mr_number = merge_request.iid
));
}
Ok(changes)
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment