From 527b32876823a8c4154fcbeb1146fa7da0e4ade2 Mon Sep 17 00:00:00 2001 From: Sam Scott Date: Mon, 21 Jan 2019 10:54:39 -0500 Subject: Minor fixes: - Suppress deprecated warning from error-chain - Fix clippy issues - Update dependencies - Update example to csv 1.0 --- src/de/mod.rs | 4 ++-- src/de/parse.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/de') 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, }) } -- cgit v1.2.3