tests/test-check-rust-format.t
author Augie Fackler <augie@google.com>
Tue, 17 Dec 2019 14:04:02 -0500
changeset 43921 b78795c2a294
parent 43819 e8a3bbffdc7d
child 44732 f44a7d8660ea
permissions -rw-r--r--
examples: add an example configuration for go source files Tested by timeless. Differential Revision: https://phab.mercurial-scm.org/D7683

#require rustfmt test-repo

  $ . "$TESTDIR/helpers-testrepo.sh"

  $ cd "$TESTDIR"/..
  $ RUSTFMT=$(rustup which --toolchain nightly rustfmt)
  $ for f in `testrepohg files 'glob:**/*.rs'` ; do
  >   $RUSTFMT --check --unstable-features --color=never $f
  > done