From a218403a52e60c991313f429e4acc05cce81ce25 Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Thu, 4 Jun 2020 15:58:07 +0100 Subject: [PATCH] Fix rustfmt issues in CI jobs (#192) Add .editorconfig file and fix rustfmt issues --- .editorconfig | 5 +++++ src/tags.rs | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..5122b87a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,5 @@ +# see https://editorconfig.org for more options, and setup instructions for yours editor + +[*.rs] +indent_style = space +indent_size = 4 diff --git a/src/tags.rs b/src/tags.rs index 50e039e7..8adccb8e 100644 --- a/src/tags.rs +++ b/src/tags.rs @@ -42,8 +42,7 @@ fn untagged(value: T) -> Tagged { macro_rules! delegate { ($name: ident, $type: ty) => { - fn $name(self, v: $type) -> Result - { + fn $name(self, v: $type) -> Result { T::deserialize(v.into_deserializer()).map(untagged) } };