Update to serde 1.0

This commit is contained in:
Oliver Schneider 2017-05-09 15:23:10 +02:00
parent 0683ca6ec1
commit 8225c23a33
4 changed files with 8 additions and 8 deletions

View File

@ -32,15 +32,15 @@ test = false
# begin automatic update # begin automatic update
clippy_lints = { version = "0.0.131", path = "clippy_lints" } clippy_lints = { version = "0.0.131", path = "clippy_lints" }
# end automatic update # end automatic update
cargo_metadata = "0.1.1" cargo_metadata = "0.2"
[dev-dependencies] [dev-dependencies]
compiletest_rs = "0.2.5" compiletest_rs = "0.2.5"
lazy_static = "0.1.15" lazy_static = "0.2"
regex = "0.2" regex = "0.2"
serde_derive = "0.9.1" serde_derive = "1.0"
clippy-mini-macro-test = { version = "0.1", path = "mini-macro" } clippy-mini-macro-test = { version = "0.1", path = "mini-macro" }
serde = "0.9.1" serde = "1.0"
[features] [features]
debugging = [] debugging = []

View File

@ -124,7 +124,7 @@ pub mod ranges;
pub mod reference; pub mod reference;
pub mod regex; pub mod regex;
pub mod returns; pub mod returns;
pub mod serde; pub mod serde_api;
pub mod shadow; pub mod shadow;
pub mod should_assert_eq; pub mod should_assert_eq;
pub mod strings; pub mod strings;
@ -202,7 +202,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
); );
// end deprecated lints, do not remove this comment, its used in `update_lints` // end deprecated lints, do not remove this comment, its used in `update_lints`
reg.register_late_lint_pass(box serde::Serde); reg.register_late_lint_pass(box serde_api::Serde);
reg.register_early_lint_pass(box utils::internal_lints::Clippy); reg.register_early_lint_pass(box utils::internal_lints::Clippy);
reg.register_late_lint_pass(box utils::internal_lints::LintWithoutLintPass::default()); reg.register_late_lint_pass(box utils::internal_lints::LintWithoutLintPass::default());
reg.register_late_lint_pass(box utils::inspector::Pass); reg.register_late_lint_pass(box utils::inspector::Pass);

View File

@ -7,7 +7,7 @@ extern crate serde;
struct A; struct A;
impl serde::de::Visitor for A { impl<'de> serde::de::Visitor<'de> for A {
type Value = (); type Value = ();
fn expecting(&self, _: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { fn expecting(&self, _: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
@ -29,7 +29,7 @@ impl serde::de::Visitor for A {
struct B; struct B;
impl serde::de::Visitor for B { impl<'de> serde::de::Visitor<'de> for B {
type Value = (); type Value = ();
fn expecting(&self, _: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { fn expecting(&self, _: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {