[needless_match]
remove `ref`/`ref mut` check
x -> x
ref x -> x
needless_match
and change its lint group to "complexity"