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"