From 629e8d1ed0aeabf27a1e1b1d3c8c9134716043e3 Mon Sep 17 00:00:00 2001 From: Clemens Wasser Date: Thu, 3 Jun 2021 12:46:56 +0200 Subject: Apply more clippy suggestions and update generated --- xtask/src/release/changelog.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xtask/src/release/changelog.rs') 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 { return Some(PrInfo { kind, message: Some(message) }); } }; - let res = PrInfo { kind, message }; + let res = PrInfo { message, kind }; Some(res) } @@ -152,7 +152,7 @@ fn parse_title_line(s: &str) -> PrInfo { PrKind::Skip => None, _ => Some(s[prefix.len()..].to_string()), }; - return PrInfo { kind, message }; + return PrInfo { message, kind }; } } PrInfo { kind: PrKind::Other, message: Some(s.to_string()) } -- cgit v1.2.3