rust-lang/rust-clippy

lint String::as_str()

Open

#874 opened on 2016年4月23日

GitHub で見る
 (9 comments) (0 reactions) (0 assignees)Rust (1,391 forks)batch import
A-lintT-middlegood first issue

Repository metrics

Stars
 (10,406 stars)
PR merge metrics
 (平均マージ 19d 22h) (30d で 113 merged PRs)

説明

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.

コントリビューターガイド