Function clippy_utils::ty::should_call_clone_as_function
source ยท pub fn should_call_clone_as_function(cx: &LateContext<'_>, ty: Ty<'_>) -> boolExpand description
Returns true if ty is a type on which calling Clone through a function instead of
as a method, such as Arc::clone() is considered idiomatic. Lints should avoid suggesting to
replace instances of ty::Clone() by .clone() for objects of those types.