summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Scott <sam.scott89@gmail.com>2019-01-21 10:54:39 -0500
committerSam Scott <sam.scott89@gmail.com>2019-01-21 10:54:39 -0500
commit527b32876823a8c4154fcbeb1146fa7da0e4ade2 (patch)
treee50d3e8e7e0fd98d5e17bc19183b24d9b71db12b /src
parent5696a51e46649997ca346089e916b489a348386d (diff)
Minor fixes:
- Suppress deprecated warning from error-chain - Fix clippy issues - Update dependencies - Update example to csv 1.0
Diffstat (limited to 'src')
-rw-r--r--src/de/mod.rs4
-rw-r--r--src/de/parse.rs6
-rw-r--r--src/error.rs2
-rw-r--r--src/lib.rs2
-rw-r--r--src/ser.rs2
5 files changed, 8 insertions, 8 deletions
diff --git a/src/de/mod.rs b/src/de/mod.rs
index 5d8115a..c44ae19 100644
--- a/src/de/mod.rs
+++ b/src/de/mod.rs
@@ -101,8 +101,8 @@ impl Config {
/// Create a new `Config` with the specified `max_depth` and `strict` mode.
pub fn new(max_depth: usize, strict: bool) -> Self {
Self {
- max_depth: max_depth,
- strict: strict,
+ max_depth,
+ strict,
}
}
diff --git a/src/de/parse.rs b/src/de/parse.rs
index a99e96d..09552fe 100644
--- a/src/de/parse.rs
+++ b/src/de/parse.rs
@@ -211,8 +211,8 @@ impl<'a> Parser<'a> {
acc: (0, 0),
index: 0,
peeked: None,
- depth: depth,
- strict: strict,
+ depth,
+ strict,
state: ParsingState::Init,
}
}
@@ -248,7 +248,7 @@ impl<'a> Parser<'a> {
_ => BTreeMap::default().into_iter(),
};
Ok(QsDeserializer {
- iter: iter,
+ iter,
value: None,
})
}
diff --git a/src/error.rs b/src/error.rs
index aecc2d0..596f0a7 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -1,3 +1,5 @@
+#![allow(deprecated)]
+
use data_encoding;
use serde::de;
diff --git a/src/lib.rs b/src/lib.rs
index 2da9b2a..ed6fea4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -89,8 +89,6 @@
overflowing_literals,
path_statements,
plugin_as_library,
- private_no_mangle_fns,
- private_no_mangle_statics,
stable_features,
trivial_casts,
trivial_numeric_casts,
diff --git a/src/ser.rs b/src/ser.rs
index 4206e60..13796ce 100644
--- a/src/ser.rs
+++ b/src/ser.rs
@@ -93,7 +93,7 @@ pub fn to_string<T: ser::Serialize>(input: &T) -> Result<String> {
pub fn to_writer<T: ser::Serialize, W: Write>(input: &T, writer: &mut W) -> Result<()> {
let mut first = true;
input.serialize(&mut QsSerializer {
- writer: writer,
+ writer,
key: None,
first: &mut first,
})