Module rust_patterns

Module rust_patterns 

Source

Structs§

IteratorAbuseRule
检测用循环代替迭代器的情况
MatchAbuseRule
检测可以用 if let 的复杂 match
StringAbuseRule
检测到处用 String 而不用 &str
VecAbuseRule
检测不必要的 Vec 分配