Fix unnecessary to_string call in changelog tool

This commit is contained in:
Héctor Ramón Jiménez 2024-09-18 02:32:05 +02:00
parent 4626e86d54
commit 7f5b6261c6
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -118,10 +118,7 @@ impl Changelog {
return Err(Error::InvalidFormat);
};
let unreleased = format!(
"\n## [Unreleased]\n{changelog}",
changelog = self.to_string()
);
let unreleased = format!("\n## [Unreleased]\n{self}");
let rest = format!("\n## {rest}");