new lint that detects useless match expression fixes #7040 changelog: Add new lint [`needless_match`] under complexity lint group
new lint that detects useless match expression fixes #7040 changelog: Add new lint [`needless_match`] under complexity lint group