rust-lang/rust-clippy

Lint calling methods that are redundant to deref

Open

#2,094 建立於 2017年9月28日

在 GitHub 查看
 (3 留言) (0 反應) (1 負責人)Rust (1,391 fork)batch import
A-lintL-unnecessaryT-middlegood first issue

倉庫指標

Star
 (10,406 star)
PR 合併指標
 (平均合併 19天 22小時) (30 天內合併 113 個 PR)

描述

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.

貢獻者指南