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:
parent
8ee0da1f74
commit
df57336a79
@ -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)?;
|
||||
|
Loading…
Reference in New Issue
Block a user