rust-lang/rust-clippy

lint String::as_str()

Open

#874 创建于 2016年4月23日

在 GitHub 查看
 (9 评论) (0 反应) (0 负责人)Rust (1,391 fork)batch import
A-lintT-middlegood first issue

仓库指标

Star
 (10,406 star)
PR 合并指标
 (平均合并 16天 6小时) (30 天内合并 79 个 PR)

描述

Using my_string.as_str() is noisy and adds no value in comparison to &my_string. This lint should not apply to using it in a .map(_) or some other higher-order stuff, just calling the function directly.

贡献者指南