diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-01-19 12:45:44 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-01-19 13:22:24 +0100 |
| commit | 86ee85666d000013b84ae01bf580eb90d75455f9 (patch) | |
| tree | 054a1f322f22c5aa90768b440a5913e0ea8f02ad | |
| parent | 257a5e1e1a0f5a996840c19aeaab1856f805c3fc (diff) | |
| download | mullvadvpn-86ee85666d000013b84ae01bf580eb90d75455f9.tar.xz mullvadvpn-86ee85666d000013b84ae01bf580eb90d75455f9.zip | |
Upgrade rustfmt to 0.3.6 and move version
| -rwxr-xr-x | format.sh | 4 | ||||
| -rw-r--r-- | rustfmt.toml | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -5,7 +5,7 @@ set -u -VERSION="0.3.5" +VERSION=`grep "required_version" rustfmt.toml | cut -f2 -d'"'` CMD="rustfmt" INSTALL_CMD="cargo install --vers $VERSION --force rustfmt-nightly" @@ -37,5 +37,5 @@ else shift fi -echo "Formatting..." +echo "Formatting with $VERSION..." cargo +nightly fmt -- "$@" diff --git a/rustfmt.toml b/rustfmt.toml index 75d71f4a8d..4af6ba9f6d 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,3 +1,5 @@ +required_version = "0.3.6" + # Activation of features, almost objectively better ;) reorder_imports = true reorder_imported_names = true |
