tests/test-check-rust-format.t
author Raphaël Gomès <rgomes@octobus.net>
Mon, 09 Jan 2023 18:25:24 +0100
changeset 49995 b6dc4802e7ef
parent 48374 090346b095fb
permissions -rw-r--r--
rust: don't use a reference to a `Cow` This was caught by `clippy`.

#require rustfmt test-repo

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

  $ cd "$TESTDIR"/..

Warning: Keep this in sync with hghave.py
  $ RUSTFMT=$(rustup which --toolchain nightly-2021-11-02 rustfmt)
  $ for f in `testrepohg files 'glob:**/*.rs'` ; do
  >   $RUSTFMT --check --edition=2018 --unstable-features --color=never $f
  > done