Skip to content

Commit

Permalink
Merge PR #123 from vbrandl/fix/clippy-lints
Browse files Browse the repository at this point in the history
Fix clippy lints
  • Loading branch information
kaj committed Jan 28, 2023
2 parents 8a718de + ade5409 commit 2118e24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/staticfiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,7 @@ impl StaticFile {
content: &impl Display,
suffix: &str,
) -> Result<&mut Self> {
let rust_name = rust_name
.replace('/', "_")
.replace('-', "_")
.replace('.', "_");
let rust_name = rust_name.replace(['/', '-', '.'], "_");
writeln!(
self.src,
"\n/// From {path:?}\
Expand Down
2 changes: 1 addition & 1 deletion src/templateexpression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl TemplateExpression {
format!(
"{name}(_ructe_out_{})?;\n",
args.iter().format_with("", |arg, f| f(&format_args!(
", {arg}",
", {arg}"
))),
)
}
Expand Down

0 comments on commit 2118e24

Please sign in to comment.