Skip to content

Commit

Permalink
Reduced string allocation during garde validation error (clippy lint) (
Browse files Browse the repository at this point in the history
  • Loading branch information
ranger-ross authored Aug 10, 2024
1 parent 1bcd1f4 commit 8c6b8a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
components: clippy
- name: cargo clippy
- name: cargo clippy --all-features
uses: giraffate/clippy-action@v1
with:
reporter: 'github-pr-check'
Expand Down
2 changes: 1 addition & 1 deletion src/garde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl ResponseError for Error {
let message = self
.report
.iter()
.map(|(path, error)| format!("{}: {}", path.to_string(), error.message().to_string()))
.map(|(path, error)| format!("{path}: {}", error.message()))
.collect::<Vec<_>>()
.join("\n");

Expand Down

0 comments on commit 8c6b8a5

Please sign in to comment.