view tests/test-check-rust-format.t @ 45540:f2de24c2b1f6

hg-core: add `files_with_nodes` to `Manifest` Differential Revision: https://phab.mercurial-scm.org/D9050
author Antoine Cezar <antoine.cezar@octobus.net>
date Tue, 15 Sep 2020 16:46:57 +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