rust-lang/rust-clippy

Lint functions taking references as arguments but only use them to create an owned value

Open

#1,563 创建于 2017年2月21日

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

仓库指标

Star
 (10,406 star)
PR 合并指标
 (平均合并 19天 22小时) (30 天内合并 113 个 PR)

描述

A function that takes a &str and always converts it to a String, should be taking a String argument instead. This is hard to generalize, but we could start with anything implementing to_owned and only calling to_owned.

贡献者指南