Skip to content

Commit 7f5b626

Browse files
committed
Fix unnecessary to_string call in changelog tool
1 parent 4626e86 commit 7f5b626

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

examples/changelog/src/changelog.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,7 @@ impl Changelog {
118118
return Err(Error::InvalidFormat);
119119
};
120120

121-
let unreleased = format!(
122-
"\n## [Unreleased]\n{changelog}",
123-
changelog = self.to_string()
124-
);
121+
let unreleased = format!("\n## [Unreleased]\n{self}");
125122

126123
let rest = format!("\n## {rest}");
127124

0 commit comments

Comments
 (0)