aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/release
diff options
context:
space:
mode:
authorClemens Wasser <[email protected]>2021-06-03 11:46:56 +0100
committerClemens Wasser <[email protected]>2021-06-03 11:46:56 +0100
commit629e8d1ed0aeabf27a1e1b1d3c8c9134716043e3 (patch)
treec55fdaf665ba247aa5df4f9912290fd5ddd1841a /xtask/src/release
parent3c6dc0f89dc9c2902d71e8639b4913917a396f8a (diff)
Apply more clippy suggestions and update generated
Diffstat (limited to 'xtask/src/release')
-rw-r--r--xtask/src/release/changelog.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/release/changelog.rs b/xtask/src/release/changelog.rs
index ffcae2cf7..2384a746f 100644
--- a/xtask/src/release/changelog.rs
+++ b/xtask/src/release/changelog.rs
@@ -132,7 +132,7 @@ fn parse_changelog_line(s: &str) -> Option<PrInfo> {
132 return Some(PrInfo { kind, message: Some(message) }); 132 return Some(PrInfo { kind, message: Some(message) });
133 } 133 }
134 }; 134 };
135 let res = PrInfo { kind, message }; 135 let res = PrInfo { message, kind };
136 Some(res) 136 Some(res)
137} 137}
138 138
@@ -152,7 +152,7 @@ fn parse_title_line(s: &str) -> PrInfo {
152 PrKind::Skip => None, 152 PrKind::Skip => None,
153 _ => Some(s[prefix.len()..].to_string()), 153 _ => Some(s[prefix.len()..].to_string()),
154 }; 154 };
155 return PrInfo { kind, message }; 155 return PrInfo { message, kind };
156 } 156 }
157 } 157 }
158 PrInfo { kind: PrKind::Other, message: Some(s.to_string()) } 158 PrInfo { kind: PrKind::Other, message: Some(s.to_string()) }