From 13e5818830cfe28622847a8a59ce0f4dea49bcee Mon Sep 17 00:00:00 2001 From: tu6ge Date: Wed, 20 Sep 2023 18:04:13 +0800 Subject: [PATCH] style: with fmt --- src/register/mod.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/register/mod.rs b/src/register/mod.rs index 21a7921..878c022 100644 --- a/src/register/mod.rs +++ b/src/register/mod.rs @@ -219,15 +219,13 @@ where where Msg: Into, { - self.message = HashMap::from_iter( - list.map(|(key_str, v)| { - let msg_key = panic_on_err!(field_name::parse_message(key_str)); + self.message = HashMap::from_iter(list.map(|(key_str, v)| { + let msg_key = panic_on_err!(field_name::parse_message(key_str)); - panic_on_err!(self.exit_message(&msg_key)); + panic_on_err!(self.exit_message(&msg_key)); - (msg_key, v.into()) - }), - ); + (msg_key, v.into()) + })); self }