Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
Signed-off-by: Ruihang Xia <[email protected]>
  • Loading branch information
waynexia committed Feb 18, 2024
1 parent e8fb1ce commit d37f78f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions ci/scripts/rust_toml_fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
# specific language governing permissions and limitations
# under the License.

# Run cargo-tomlfmt with flag `-d` in dry run to check formatting
# Run `taplo format` with flag `--check` in dry run to check formatting
# without overwritng the file. If any error occur, you may want to
# rerun 'cargo tomlfmt -p path/to/Cargo.toml' without '-d' to fix
# the formatting automatically.
# rerun `taplo format` to fix the formatting automatically.
set -ex
taplo format
done
6 changes: 3 additions & 3 deletions dev/rust_lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
# DataFusion CI does

set -e
if ! command -v cargo-tomlfmt &> /dev/null; then
echo "Installing cargo-tomlfmt using cargo"
cargo install cargo-tomlfmt
if ! command -v taplo &> /dev/null; then
echo "Installing taplo using cargo"
cargo install taplo-cli
fi

ci/scripts/rust_fmt.sh
Expand Down

0 comments on commit d37f78f

Please sign in to comment.