summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSam Scott <sam.scott89@gmail.com>2017-11-09 16:28:07 +0000
committerSam Scott <sam.scott89@gmail.com>2017-11-09 16:40:24 +0000
commit61ccfb416e553301d9db604d0986d184796b0280 (patch)
tree767bc2cfe83e439f5cd973c8088aa7de68203fb9 /examples
parentd74354b1eaccfb6ea264fca81f3dd936afdff44f (diff)
Let rustfmt do its thing.
Diffstat (limited to 'examples')
-rw-r--r--examples/introduction.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/introduction.rs b/examples/introduction.rs
index cee6bdf..d980719 100644
--- a/examples/introduction.rs
+++ b/examples/introduction.rs
@@ -143,9 +143,7 @@ fn main() {
e: AdjTaggedEnum,
}
- let example_params = EnumQuery {
- e: AdjTaggedEnum::B(false),
- };
+ let example_params = EnumQuery { e: AdjTaggedEnum::B(false) };
// encodes as:
// "e[B]=false"
let encoded = qs::to_string(&example_params).unwrap();
@@ -154,9 +152,7 @@ fn main() {
println!("`serde_qs` from_str for enum:\n\t{:?}", params);
println!("");
- let example_params = EnumQuery {
- e: AdjTaggedEnum::A,
- };
+ let example_params = EnumQuery { e: AdjTaggedEnum::A };
// encodes as:
// "e=A"
let encoded = qs::to_string(&example_params).unwrap();