From d37f78f71260174334c64733f6cc27d919dd690b Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Sun, 18 Feb 2024 22:28:04 +0800 Subject: [PATCH] update doc Signed-off-by: Ruihang Xia --- ci/scripts/rust_toml_fmt.sh | 5 ++--- dev/rust_lint.sh | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ci/scripts/rust_toml_fmt.sh b/ci/scripts/rust_toml_fmt.sh index 62b7ac753d86..9204a562a3fe 100755 --- a/ci/scripts/rust_toml_fmt.sh +++ b/ci/scripts/rust_toml_fmt.sh @@ -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 diff --git a/dev/rust_lint.sh b/dev/rust_lint.sh index 119107133072..af0fce72ccfa 100755 --- a/dev/rust_lint.sh +++ b/dev/rust_lint.sh @@ -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