rust-lang/rust-clippy

lint String::as_str()

Open

#874 建立於 2016年4月23日

在 GitHub 查看
 (9 留言) (0 反應) (0 負責人)Rust (10,406 star) (1,391 fork)batch import
A-lintT-middlegood first issue

描述

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.

貢獻者指南