Fix needless_pass_by_value lint

This commit is contained in:
David Tolnay 2017-02-27 19:43:42 -08:00
parent f944b453c4
commit fe9ea3b4b4
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -11,7 +11,7 @@ pub fn serialize_tagged_newtype<S, T>(serializer: S,
variant_ident: &'static str,
tag: &'static str,
variant_name: &'static str,
value: T)
value: &T)
-> Result<S::Ok, S::Error>
where S: Serializer,
T: Serialize