On Wed, Aug 30, 2023 at 03:11:23PM -0500, Eric Blake wrote:
 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 
Reviewed-by: Richard W.M. Jones <rjones(a)redhat.com>
-- 
Richard Jones, Virtualization Group, Red Hat 
http://people.redhat.com/~rjones
Read my programming and virtualization blog: 
http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW