Since rustfmt favors 4-space indent on .rs files, we should do
likewise to reduce the churn when running rustfmt after editing in
an emacs session set to honor editorconfig.
Signed-off-by: Eric Blake <eblake(a)redhat.com>
---
.editorconfig | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.editorconfig b/.editorconfig
index 86ef47d0..f5bc5604 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -21,6 +21,10 @@ indent_size = 4
indent_style = tab
indent_size = 4
+[*.rs]
+# Match rustfmt style
+indent_size = 4
+
[{Makefile,Makefile.in,Makefile.am,*.mk}]
# Make requires tabs.
indent_style = tab
--
2.41.0