Skip to content

Commit

Permalink
refactor(clippy): apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Sep 15, 2024
1 parent 05b6dde commit 82cc09f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-cliff-core/src/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl Template {
.join("\n");
}
let mut tera = Tera::default();
if let Err(e) = tera.add_raw_template(&name, &content) {
if let Err(e) = tera.add_raw_template(name, &content) {
return if let Some(error_source) = e.source() {
Err(Error::TemplateParseError(error_source.to_string()))
} else {
Expand Down

0 comments on commit 82cc09f

Please sign in to comment.