rust-lang/rust-clippy
View on GitHubLint calling methods that are redundant to deref
Open
#2094 opened on Sep 28, 2017
A-lintL-unnecessaryT-middlegood first issue
Description
For example, vec.as_slice().first() could be just worded as vec.first().
We'd probably want to have a whitelist for this, but in general, calling such methods is redundant.