Module rustc_lint::noop_method_call
source · Structs§
Statics§
- The
noop_method_calllint detects specific calls to noop methods such as a calling<&T as Clone>::clonewhereT: !Clone. - The
suspicious_double_ref_oplint checks for usage of.clone()/.borrow()/.deref()on an&&TwhenT: !Deref/Borrow/Clone, which means the call will return the inner&T, instead of performing the operation on the underlyingTand can be confusing.