aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2021-02-09 18:00:15 -0800
committerHaibo Huang <hhb@google.com>2021-02-09 18:00:15 -0800
commitbc505790448fa77451f9a8e56abfce2fe287db29 (patch)
treec000737994dbba6827078d6c3fc3e7765a62c0af /src/lib.rs
parent43dcc12b2a9ec611c17f35803e3a2cc4f82b8857 (diff)
downloadserde_derive-bc505790448fa77451f9a8e56abfce2fe287db29.tar.gz
Upgrade rust/crates/serde_derive to 1.0.123
Test: make Change-Id: I852197879be42a3414d5fa17d60cdbb474d3231b
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 30e3d5b..f4a93ae 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -13,7 +13,7 @@
//!
//! [https://serde.rs/derive.html]: https://serde.rs/derive.html
-#![doc(html_root_url = "https://docs.rs/serde_derive/1.0.119")]
+#![doc(html_root_url = "https://docs.rs/serde_derive/1.0.123")]
#![allow(unknown_lints, bare_trait_objects)]
#![deny(clippy::all, clippy::pedantic)]
// Ignored clippy lints
@@ -48,6 +48,7 @@
clippy::struct_excessive_bools,
clippy::too_many_lines,
clippy::unseparated_literal_suffix,
+ clippy::unused_self,
clippy::use_self,
clippy::wildcard_imports
)]
@@ -78,16 +79,16 @@ mod try;
#[proc_macro_derive(Serialize, attributes(serde))]
pub fn derive_serialize(input: TokenStream) -> TokenStream {
- let input = parse_macro_input!(input as DeriveInput);
- ser::expand_derive_serialize(&input)
+ let mut input = parse_macro_input!(input as DeriveInput);
+ ser::expand_derive_serialize(&mut input)
.unwrap_or_else(to_compile_errors)
.into()
}
#[proc_macro_derive(Deserialize, attributes(serde))]
pub fn derive_deserialize(input: TokenStream) -> TokenStream {
- let input = parse_macro_input!(input as DeriveInput);
- de::expand_derive_deserialize(&input)
+ let mut input = parse_macro_input!(input as DeriveInput);
+ de::expand_derive_deserialize(&mut input)
.unwrap_or_else(to_compile_errors)
.into()
}