view tests/test-check-rust-format.t @ 45591:f38adf8b0711

hg-core: Explain offset override of first revision (D8958#inline-14992 followup) Differential Revision: https://phab.mercurial-scm.org/D9095
author Antoine cezar<acezar@chwitlabs.fr>
date Mon, 28 Sep 2020 13:51:16 +0200
parents f44a7d8660ea
children d42809b6b10f
line wrap: on
line source

#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 --edition=2018 --unstable-features --color=never $f
  > done