diff --git a/base/src/custom_serde.rs b/base/src/custom_serde.rs index c2391f0441..94965486e2 100644 --- a/base/src/custom_serde.rs +++ b/base/src/custom_serde.rs @@ -19,14 +19,10 @@ use sync::Mutex; /// NOTE: This does not validate already serialized Mutexes and data. If multiple structs contain a /// clone of the Arc, and they are all being serialized, this will result in the same data being /// serialized, once per clone. -pub fn serialize_arc_mutex( +pub fn serialize_arc_mutex( item: &Arc>, serializer: S, -) -> Result -where - S: Serializer, - T: Serialize, -{ +) -> Result { let lock = item.lock(); serde::Serialize::serialize(&*lock, serializer) }