mqy opened a new pull request #9072:
URL: https://github.com/apache/arrow/pull/9072


   Currently,  the client side git pre-commit hook checks and runs `cargo fmt` 
with stable version, but the CI check may fail in nightly version occasionally 
even if the code has been formatted with stable.
   
   It seems that, this problem can be resolved by: running `cargo +nighty fmt` 
before  `cargo +stable fmt`. Thus `pre-commit.sh` should be updated in this 
way.  
   
   In this PR:
   
   1. only check staged *.rs files and exit if no changes
   2. cargo clippy is moved before cargo fmt
   3. run `cargo +nighty fmt` before  cargo +stable fmt
   4. show more concise tip messages
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to