1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-11-29 15:34:47 +03:00

refactor(clippy): apply clippy suggestions

This commit is contained in:
Orhun Parmaksız 2024-03-02 17:59:28 +03:00
parent 8ee0da1f74
commit df57336a79
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90

View File

@ -485,7 +485,7 @@ pub fn run(mut args: Opt) -> Result<()> {
};
}
if let Some(ref path) = args.prepend {
changelog.prepend(fs::read_to_string(&path)?, &mut File::create(path)?)?;
changelog.prepend(fs::read_to_string(path)?, &mut File::create(path)?)?;
}
if let Some(path) = args.output {
let mut output = File::create(path)?;