From cb5f8ffc396070055c647a56b3e32f5cc94f5e32 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 24 Apr 2020 12:32:25 +0200 Subject: [PATCH] Don't use unstable rustfmt options --- rustfmt.toml | 1 - src/urlencoded/ser/pair.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/rustfmt.toml b/rustfmt.toml index 2b7608b3..7d08e05d 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,4 +1,3 @@ -match_block_trailing_comma = true max_width = 80 newline_style = "Unix" reorder_imports = true diff --git a/src/urlencoded/ser/pair.rs b/src/urlencoded/ser/pair.rs index 9869fb0b..a8bc7c06 100644 --- a/src/urlencoded/ser/pair.rs +++ b/src/urlencoded/ser/pair.rs @@ -239,7 +239,7 @@ where key: value.serialize(key_serializer)?, }; Ok(()) - }, + } PairState::WaitingForValue { key } => { let result = { let value_sink = ValueSink::new(self.urlencoder, &key); @@ -252,7 +252,7 @@ where self.state = PairState::WaitingForValue { key }; } result - }, + } PairState::Done => Err(Error::done()), } }