Beautify Cargo.tomls with |cargo tomlfmt| (#4477)

This commit is contained in:
Michael Vines
2019-05-29 18:30:49 -07:00
committed by GitHub
parent 348c2263ba
commit 7a021dff05
42 changed files with 214 additions and 214 deletions

View File

@ -89,7 +89,7 @@ for Cargo_toml in "${Cargo_tomls[@]}"; do
(
set -x
sed -i "$Cargo_toml" -e "
s/^$crate = { *path *= *\"\([^\"]*\)\" *, *version *= *\"[^\"]*\"\(.*\)} *\$/$crate = \{ path = \"\1\", version = \"$newVersion\"\2 \}/
s/^$crate = { *path *= *\"\([^\"]*\)\" *, *version *= *\"[^\"]*\"\(.*\)} *\$/$crate = \{ path = \"\1\", version = \"$newVersion\"\2\}/
"
)
done