summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorSam Scott <sam.scott89@gmail.com>2019-01-23 11:14:57 -0500
committerSam Scott <sam.scott89@gmail.com>2019-01-23 11:14:57 -0500
commitf27c161dafca1ffae86e104eea4fad8c899f0f21 (patch)
treed7a406d097833fc1821d8cf28835cc90e91e42be /src/lib.rs
parentb69c42eb9b9f055e74353c9c149074616eff181f (diff)
Run cargo fmt.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 1c3d33e..53bfef2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -89,7 +89,7 @@
//! However, since some implementations will automatically encode everything
//! in the URL, we also have a non-strict mode. This means that `serde_qs`
//! will assume that any encoded square brackets in the string were meant to
-//! be taken as nested keys. From the example before, `a[b%5Bc%5D]=123` will
+//! be taken as nested keys. From the example before, `a[b%5Bc%5D]=123` will
//! now become `{"a": {"b": {"c": 123 }}}`.
//!
//! Non-strict mode can be useful when, as said before, some middleware
@@ -113,7 +113,7 @@
//! extern crate serde_qs as qs;
//!
//! use serde::de::Error;
-//!
+//!
//! fn from_str<'de, D, S>(deserializer: D) -> Result<S, D::Error>
//! where D: serde::Deserializer<'de>,
//! S: std::str::FromStr
@@ -147,8 +147,7 @@
//! }
//! ```
-#![allow(
-)]
+#![allow()]
#![deny(
const_err,
dead_code,
@@ -190,7 +189,7 @@
unused_unsafe,
unused_variables,
variant_size_differences,
- while_true,
+ while_true
)]
extern crate data_encoding;
@@ -204,11 +203,10 @@ mod de;
mod error;
mod ser;
-
-#[doc(inline)]
-pub use de::{from_bytes, from_str};
#[doc(inline)]
pub use de::Config;
+#[doc(inline)]
+pub use de::{from_bytes, from_str};
pub use error::Error;
#[doc(inline)]
-pub use ser::{QsSerializer, to_string, to_writer};
+pub use ser::{to_string, to_writer, QsSerializer};