From b66306dd6aac9041cd0e2b5dcade9a08f3cb2bc3 Mon Sep 17 00:00:00 2001 From: rasul Date: Fri, 3 Apr 2020 17:53:15 -0500 Subject: [PATCH] rustfmt --- rustfmt.sh | 2 ++ rustfmt.toml | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100755 rustfmt.sh create mode 100644 rustfmt.toml diff --git a/rustfmt.sh b/rustfmt.sh new file mode 100755 index 0000000..e609cd4 --- /dev/null +++ b/rustfmt.sh @@ -0,0 +1,2 @@ +#!/bin/bash +find . -type f -name '*.rs' -exec rustfmt {} + diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..ae487e0 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,6 @@ +max_width = 100 +hard_tabs = true +newline_style = "unix" +use_field_init_shorthand = true +use_try_shorthand = true +edition = "2018"