From 771bcb5bda250cf5740d4d08bbe4f427a5fa402e Mon Sep 17 00:00:00 2001 From: Tomusdrw Date: Tue, 16 Feb 2016 10:36:15 +0100 Subject: [PATCH] Adding formatting script --- fmt.sh | 12 ++++++++++++ util/rustfmt.toml | 1 - 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 fmt.sh delete mode 100644 util/rustfmt.toml diff --git a/fmt.sh b/fmt.sh new file mode 100755 index 000000000..33edc3b0d --- /dev/null +++ b/fmt.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +RUSTFMT="rustfmt --write-mode overwrite" + +$RUSTFMT ./util/src/lib.rs +$RUSTFMT ./ethcore/src/lib.rs +$RUSTFMT ./ethash/src/lib.rs +$RUSTFMT ./rpc/src/lib.rs +$RUSTFMT ./sync/src/lib.rs +$RUSTFMT ./evmjit/src/lib.rs +$RUSTFMT ./parity/main.rs + diff --git a/util/rustfmt.toml b/util/rustfmt.toml deleted file mode 100644 index 218e20321..000000000 --- a/util/rustfmt.toml +++ /dev/null @@ -1 +0,0 @@ -hard_tabs = true