Replace data.clone() by Arc::clone(&data) in mutex doc.
Arc::clone(&from) is considered as more idiomatic because it conveys more explicitly the meaning of the code.
Showing
想要评论请 注册 或 登录
Arc::clone(&from) is considered as more idiomatic because it conveys more explicitly the meaning of the code.