mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 20:41:02 +00:00
Fix needless_pass_by_value lint
This commit is contained in:
@@ -11,7 +11,7 @@ pub fn serialize_tagged_newtype<S, T>(serializer: S,
|
|||||||
variant_ident: &'static str,
|
variant_ident: &'static str,
|
||||||
tag: &'static str,
|
tag: &'static str,
|
||||||
variant_name: &'static str,
|
variant_name: &'static str,
|
||||||
value: T)
|
value: &T)
|
||||||
-> Result<S::Ok, S::Error>
|
-> Result<S::Ok, S::Error>
|
||||||
where S: Serializer,
|
where S: Serializer,
|
||||||
T: Serialize
|
T: Serialize
|
||||||
|
|||||||
Reference in New Issue
Block a user