pre-commit-hooks/rust/clippy-driver.sh
Matej Focko 0341881984
fix(rust): add wrapper for running clippy
Add wrapper for running clippy on each file separately, since
‹clippy-driver› accepts only one file at a time.

Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-24 15:21:01 +01:00

5 lines
69 B
Bash
Executable file

#!/bin/bash
for src_file in "$@"; do
clippy-driver $src_file
done