mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-21 07:17:00 +00:00
Replace methods with more flexible endpoints
This commit is contained in:
parent
0ac0f0f504
commit
b807ae2796
87 changed files with 1497 additions and 1512 deletions
15
tests/ui/rustfmt.sh
Executable file
15
tests/ui/rustfmt.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
rustfmt=${RUSTFMT:-rustfmt}
|
||||
version="$($rustfmt -V)"
|
||||
if [[ $version != *nightly* ]]; then
|
||||
rustfmt="$rustfmt +nightly"
|
||||
fi
|
||||
|
||||
return=0
|
||||
find "$(dirname "$0")" -name '*.rs' -type f | while read file; do
|
||||
$rustfmt --config-path "$(dirname "$0")/../../rustfmt.toml" "$@" "$file" || return=1
|
||||
done
|
||||
|
||||
exit $return
|
Loading…
Add table
Add a link
Reference in a new issue