[Libguestfs] [libnbd PATCH 1/2] maint: Favor 4-space indent in .rs files
Eric Blake
eblake at redhat.com
Wed Aug 30 20:11:23 UTC 2023
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 at 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
More information about the Libguestfs
mailing list